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
I'm using grid.arrange to plot a number of heat maps in a grid. I would like for them to then only have one legend and would like to be able to extract the legend from a superheat instance in order to plot it. Is there a way to do this?
I've tried a number of things, for example:
p = superheat(mtcars,
# change the size of the labels
left.label.size = 0.4,
bottom.label.size = 0.1)
p$legend
or
p = superheat(mtcars,
# change the size of the labels
left.label.size = 0.4,
bottom.label.size = 0.1)
p_legend = p$plot
p_legend$legend
But I've exhausted my options at this point.
Any help would be much appreciated!
Cheers,
Emily
The text was updated successfully, but these errors were encountered:
I'm using grid.arrange to plot a number of heat maps in a grid. I would like for them to then only have one legend and would like to be able to extract the legend from a superheat instance in order to plot it. Is there a way to do this?
I've tried a number of things, for example:
or
But I've exhausted my options at this point.
Any help would be much appreciated!
Cheers,
Emily
The text was updated successfully, but these errors were encountered: