insightsengineering / tern

Table, Listings, and Graphs (TLG) library for common outputs used in clinical trials
https://insightsengineering.github.io/tern/
Other
77 stars 22 forks source link

Manually specify shapes within `g_lineplot` when >6 group levels exist #1233

Closed edelarua closed 7 months ago

edelarua commented 7 months ago

Originally reported

Warning messages:
1: The shape palette can deal with a maximum of 6 discrete values because more than 6 becomes difficult to discriminate; you have 7. Consider
specifying shapes manually if you must have them. 

To avoid ggplot printing a warning message when there are more than 6 levels in group_var, manually specify the number of levels in these cases via scale_shape_manual.