View source: R/miscellaneous.R
getNLinesLabel | R Documentation |
ggplot2
object via gg
or from the label via value
Get number of lines for specific label either
from a ggplot2
object via gg
or from the label via value
getNLinesLabel(
gg,
value,
elName = c("x", "y", "title", "caption"),
elNLines = NULL
)
gg |
|
value |
String with label value. |
elName |
string with name of label to extract, among 'x', 'y' and 'title' |
elNLines |
(optional) Named integer with number of lines, by default 2 for 'x'/'y', 3 for 'title' and 1 for caption. |
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.