Skip to content

Commit

Permalink
Small bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwenseleers committed Nov 19, 2018
1 parent 70fd8de commit 950a406
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ cran-comments.md
^.git$
^export.Rproj$
^.*\.Rproj$
.Rhistory
.RData
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){
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){
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){
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 950a406

Please sign in to comment.