You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When boxplotSubarray() is used without specifying a color variable, a "dangling" legend is produced on the top of the plot. "Dangling" here refers to a legend with only 1 color category (i.e. an uninformative legend). By default, the legend title is removed, so only the box icon is displayed. This shrinks the overall size of the boxplot area (to accommodate the legend), and results in an unclean final plot. The ultimate goal of this package is to produce out-of-the-box, polished figures for SomaScan, and this unused legend would need to be trimmed off of any final figure.
I think this issue stems from the use of a dummy variable for the fill argument of ggplot(). When fill= or color= is specified, a legend is produced by default. In the example below, "class" is a dummy variable that contains no grouping information and is generated and added to plot_data when boxplotSubarray(..., color.by=NULL):
Note: this is not an urgent issue, because boxplotSubarray() is typically used with a column specified for the color.by= argument. However, when using the default (color.by=NULL), this uninformative legend is produced.
Description
When
boxplotSubarray()
is used without specifying a color variable, a "dangling" legend is produced on the top of the plot. "Dangling" here refers to a legend with only 1 color category (i.e. an uninformative legend). By default, the legend title is removed, so only the box icon is displayed. This shrinks the overall size of the boxplot area (to accommodate the legend), and results in an unclean final plot. The ultimate goal of this package is to produce out-of-the-box, polished figures for SomaScan, and this unused legend would need to be trimmed off of any final figure.I think this issue stems from the use of a dummy variable for the
fill
argument ofggplot()
. Whenfill=
orcolor=
is specified, a legend is produced by default. In the example below, "class" is a dummy variable that contains no grouping information and is generated and added toplot_data
whenboxplotSubarray(..., color.by=NULL)
:Note: this is not an urgent issue, because
boxplotSubarray()
is typically used with a column specified for thecolor.by=
argument. However, when using the default (color.by=NULL
), this uninformative legend is produced.Output
Priority Level
Thanks for reporting 🥳!
The text was updated successfully, but these errors were encountered: