View source: R/miscellaneous.R
getNLinesLegend | R Documentation |
ggplot2
object,
or from the values of the legend (legendValues
)
and title (legendTitle
)Get number of lines in the legend,
either from directly the ggplot2
object,
or from the values of the legend (legendValues
)
and title (legendTitle
)
getNLinesLegend(gg, values, title)
gg |
|
values |
Vector with unique legend values |
title |
String, title for the plot. |
integer with (approximated) number of lines
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.