Skip to content
/ ggview Public

Ggplot picture previewer

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

idmn/ggview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

194f015 · Jan 22, 2025

History

26 Commits
Oct 1, 2024
Oct 1, 2024
Sep 30, 2024
Oct 1, 2024
Oct 1, 2024
Jan 22, 2025
Jan 22, 2025
Nov 26, 2022
Oct 1, 2024
Oct 1, 2024
Oct 1, 2024
Oct 1, 2024
Oct 1, 2024
Oct 2, 2024
Oct 1, 2024
Nov 26, 2022

Repository files navigation

ggview


CRAN status R-CMD-check

Choose the right picture size for a ggplot without leaving your IDE.

  1. Set picture dimensions with the canvas() element.

  1. Save the plot with save_ggplot().
p <- 
  ggplot(mtcars, aes(wt, mpg)) +
  geom_point() +
  ggtitle("My Plot") +
  canvas(800, 1000, units = "px")

save_ggplot(p, "my_plot.png")

Installation

install.packages("ggview")

# development version
remotes::install_github("idmn/ggview")

VS Code

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.

About

Ggplot picture previewer

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages