Skip to content

Commit a0c3763

Browse files
Add width and height to ggsave for consistent KM plot figure size
Agent-Logs-Url: https://github.com/RConsortium/submissions-pilot5-datasetjson/sessions/fe436a0d-4777-4bce-9c86-9c3229a03b63 Co-authored-by: parmsam-pfizer <107635309+parmsam-pfizer@users.noreply.github.com>
1 parent 2f02082 commit a0c3763

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pilot5-submission/pilot5-programs/tlf-kmplot.r

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,11 @@ if (!dir.exists(file.path(path$output, "pdf"))) {
119119
dir.create(file.path(path$output, "pdf"))
120120
}
121121

122+
# width and height are specified to ensure consistent figure size across workstations
122123
ggsave(file,
123124
filename = file.path(path$output, "pdf/tlf-kmplot-pilot5.pdf"),
125+
width = 10,
126+
height = 8,
124127
scale = 2
125128
)
126129

0 commit comments

Comments
 (0)