is_horizontal | R Documentation |
Check if plot is horizontal
is_horizontal(data, mapping, val = "y")
is_character_column(data, mapping, val = "y")
data |
data used in ggplot2 plot |
mapping |
ggplot2 |
val |
key to retrieve from |
Boolean determining if the data is a character-like data
is_horizontal(iris, ggplot2::aes(Sepal.Length, Species)) # TRUE
is_horizontal(iris, ggplot2::aes(Sepal.Length, Species), "x") # FALSE
is_horizontal(iris, ggplot2::aes(Sepal.Length, Sepal.Width)) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.