Description Usage Arguments Details See Also Examples
Hiermee wordt een plot2-grafiek opgeslagen op de schijf in de huidige werkmap. Het bestandstype wordt bepaald op basis van de extensie die gegeven wordt aan filename.
1 2 3 4 5 6 | plot2.save(plot, width = 800, height = 500, size = NA,
portrait = FALSE, text.factor = 1,
title = if_else(is.na(getplottitle(plot)), format(Sys.time(), format =
"%Y%m%d-%H%M%S"), getplottitle(plot)), file_format = "png",
filename = paste0(title, ".", file_format), selectdir = FALSE,
returnplot = TRUE)
|
plot |
Grafiek die opgeslagen moet worden. |
width |
Standaard is |
height |
Standaard is |
size |
Standaard is - - - in geval van PDF: - een schermresolutie (niet-hoofdlettergevoelig): |
portrait |
Standaard is |
text.factor |
Standaard is
|
filename |
Standaard is de titel van |
selectdir |
Standaard is |
returnplot |
Standaard is |
De maplocatie van de plot2-grafiek die met deze functie opgeslagen wordt, wordt vastgelegd in de functie options met de variabele plot2.lastsave. Zie plot2.opendir voor meer informatie.
plot2.opendir om de map te openen waarin de afbeelding geplaatst is en ggsave voor de functie die intern gebruikt wordt.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
tbl %>%
filter(...) %>%
group_by(...) %>%
summarise(...) %>%
plot2() %>%
plot2.save(1200, 800)
tbl %>%
plot2() %>%
plot2.save(size = "1200 * 800")
tbl %>%
plot2() %>%
plot2.save(size = "FullHD", text.factor = 1.25)
tbl %>%
plot2() %>%
plot2.save(size = "PowerPoint", filename = "Test") # will output `Test.emf`
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.