Skip to content

Default dims for saving ggplots and recommended workflow ggplot #34

Description

@SamPaplauskas

Issue one: Default dims for saving ggplots

Interested in how people save their ggplots for reproducible figures.

There are a variety of methods for saving plots including some which do not require dimensions specifications, such as my go to method which is saving plots directly from RStudio plotspace, and others which allow you to specify dimensions such as using the command line e.g. ggsave(plot = p, width = 3, height = 3, dpi = 300, filename = "not squished axis.pdf")

I would like to know what people have used from their own experience to save plots and do so in a way that they can be easily reproduced with a similar looking / sized image every time you save.

Issue two: Recommended workflow ggplot

For long plotting code, is there a neat workflow that can be recommended from users own experience? This question comes to mind when choosing between chunks of code e.g.
ggplot(....) +
... +
...

versus an alternative

Plot <- ggplot(..)
plot + ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions