Skip to content

Commit

Permalink
add 'Other' to shape options
Browse files Browse the repository at this point in the history
  • Loading branch information
cm401 committed Jun 25, 2024
1 parent a7494ab commit 7273ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/lassa_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ forest_plot <- function(df, label, color_column, lims) {
if (all(df$parameter_class=="Reproduction number")) {gg <- gg + geom_vline(xintercept = 1, linetype = "dashed", colour = "dark grey")}

gg <- gg + scale_fill_lancet(palette = "lanonc") + scale_color_lancet(palette = "lanonc") +
scale_shape_manual(name = "Parameter Type",values = c(Mean = 21, Median = 22, Unspecified = 24),breaks = c("Mean", "Median", "Unspecified")) +
scale_shape_manual(name = "Parameter Type",values = c(Mean = 21, Median = 22, Unspecified = 24, Other = 8),breaks = c("Mean", "Median", "Unspecified", "Other")) +
scale_x_continuous(limits = lims, expand = c(0, 0)) +
scale_y_discrete(labels = setNames(df$refs, df$urefs)) +
labs(x = label, y = NULL) +
Expand Down

0 comments on commit 7273ee5

Please sign in to comment.