We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
treemap
draw = FALSE
Thanks for developing this R package!
Currently treemap::treemap opens a new grid viewport by default and does not respect draw = FALSE. If draw = FALSE, no graphics device should be open.
treemap::treemap
To cleanly embed treemap() function into other code/function, you have to make ugly things like the code below which is not ideal.
treemap()
library(treemap) data(GNI2014) grDevices::pdf(file = "/dev/null") treemap( dtf = GNI2014, index = c("continent", "iso3"), vSize = "population", vColor = "GNI", type = "value", format.legend = list(scientific = FALSE, big.mark = " "), draw = FALSE ) invisible(grDevices::dev.off())
For short, all viewports functions should be conditional on draw.
draw
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Thanks for developing this R package!
Currently
treemap::treemap
opens a new grid viewport by default and does not respectdraw = FALSE
.If
draw = FALSE
, no graphics device should be open.To cleanly embed
treemap()
function into other code/function, you have to make ugly things like the code below which is not ideal.For short, all viewports functions should be conditional on
draw
.The text was updated successfully, but these errors were encountered: