Skip to content

Commit

Permalink
Minor bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwenseleers committed Nov 19, 2018
1 parent 950a406 commit 13ed39f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/graph2bitmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ graph2bitmap = function(x = NULL, file = "Rplot", fun = NULL, type = c("PNG","JP
stop("base R plots cannot be passed as objects, use ggplot2 or lattice plots instead")
myplot = if (is.null(fun)) function(pl = p) print(pl) else fun

if(options()$device == FALSE){
if(options()$device != FALSE){
plotsize = dev.size()
} else {
plotsize = c(7,5) # default device size: 10 inch x 10 inch
Expand Down
2 changes: 1 addition & 1 deletion R/graph2office.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ graph2office = function(x = NULL, file = "Rplot", fun = NULL, type = c("PPT","DO
}

### 2. Prepare the plotting region and the plot apsect
if(options()$device == FALSE){
if(options()$device != FALSE){
plotsize = dev.size()
} else {
plotsize = c(7,5) # default device size: 10 inch x 10 inch
Expand Down
2 changes: 1 addition & 1 deletion R/graph2vector.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ graph2vector = function(x = NULL, file = "Rplot", fun = NULL, type = "SVG",
stop("base R plots cannot be passed as objects, use ggplot2 or lattice plots instead")
myplot = if (is.null(fun)) function(pl = p) print(pl) else fun

if(options()$device == FALSE){
if(options()$device != FALSE){
plotsize = dev.size()
} else {
plotsize = c(7,5) # default device size: 10 inch x 10 inch
Expand Down

0 comments on commit 13ed39f

Please sign in to comment.