Skip to content

Commit

Permalink
Update Data_Output.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
avahoffman committed Oct 8, 2024
1 parent f846163 commit c7c4b22
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/Data_Output/Data_Output.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,21 @@ knitr::include_graphics(here::here("images/subset_objects_in_environment.png"))
knitr::include_graphics(here::here("images/save_environment.png"))
```


## REMINDER: Saving a ggplot to file

A few options:

- RStudio \> Plots \> Export \> Save as image / Save as PDF
- RStudio \> Plots \> Zoom \> [right mouse click on the plot] \> Save image as
- In the code

```{r, eval = FALSE}
ggsave(filename = "saved_plot.png", # will save in working directory
plot = rp_fac_plot,
width = 6, height = 3.5) # by default in inches
```

## Summary {.small}

- Use `write_csv()` and `write_delim()` from the `readr` package to write your (modified) data
Expand Down

0 comments on commit c7c4b22

Please sign in to comment.