The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
Choose the right picture size for a ggplot without leaving your IDE.
canvas()
element.save_ggplot()
.<-
p ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
ggtitle("My Plot") +
canvas(800, 1000, units = "px")
save_ggplot(p, "my_plot.png")
install.packages("ggview")
# development version
::install_github("idmn/ggview") remotes
The package relies on the rstudioapi::viewer()
function
to display plot previews. By default it does not work in VS Code, but
installing the R
extension fixes it. It tricks the rstudioapi
package
into believing it is running in RStudio, and everything works.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.