Description Usage Arguments Examples
View source: R/suppress_aes_text_warning.R
Suppresses unknown aesthetic warning when providing a text
aesthetic.
Intended for cosmetic purposes when printing as a ggplot object.
Unnecessary, if converting to plotly for use as hovertext with ggplotly()
.
1 | suppress_aes_text_warning(ggplot_obj)
|
ggplot_obj |
a ggplot object, see ggplot |
1 2 3 4 5 6 7 8 9 | requireNamespace("ggplot2", quietly = TRUE)
g <- ggplot2::ggplot(iris) +
ggplot2::geom_point(
ggplot2::aes(x = Sepal.Length, y = Sepal.Width, text = Species)
)
g
suppress_aes_text_warning(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.