Skip to content

Commit

Permalink
Update file format for figures
Browse files Browse the repository at this point in the history
  • Loading branch information
venexia committed Apr 3, 2024
1 parent bed340d commit 316575e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion analysis/post_release/manuscript_figureAER.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@ ggplot2::ggplot(data = df[df$days<197,],
# Save plot --------------------------------------------------------------------
print("Save plot")

ggplot2::ggsave(paste0("output/post_release/figureAER.png"),
ggplot2::ggsave("output/post_release/figureAER.eps",
height = 210, width = 297, unit = "mm", dpi = 600, scale = 1)
4 changes: 2 additions & 2 deletions analysis/post_release/manuscript_figureAdj.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ggplot2::ggplot(data = df,
# Save plot --------------------------------------------------------------------
print("Save plot")

ggplot2::ggsave("output/post_release/figureAdj.png",
ggplot2::ggsave("output/post_release/figureAdj.eps",
height = 297, width = 210,
unit = "mm", dpi = 600, scale = 0.8)

Expand Down Expand Up @@ -122,6 +122,6 @@ ggplot2::ggplot(data = df[df$model=="mdl_max_adj" & !(df$outcome %in% c("depress
# Save plot --------------------------------------------------------------------
print("Save plot")

ggplot2::ggsave("output/post_release/figureOther.png",
ggplot2::ggsave("output/post_release/figureOther.eps",
height = 297*0.82, width = 210,
unit = "mm", dpi = 600, scale = 0.8)
2 changes: 1 addition & 1 deletion analysis/post_release/manuscript_figureMain.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ for (i in unique(df$analysis_group)){
# Save plot ------------------------------------------------------------------
print("Save plot")

ggplot2::ggsave(paste0("output/post_release/figure_",gsub("day0_","",i),".png"),
ggplot2::ggsave(paste0("output/post_release/figure_",gsub("day0_","",i),".eps"),
height = 210, width = plot_width,
unit = "mm", dpi = 600, scale = 0.8)
}

0 comments on commit 316575e

Please sign in to comment.