is_horizontal: Check if plot is horizontal

View source: R/gg-plots.R

is_horizontalR Documentation

Check if plot is horizontal

Description

Check if plot is horizontal

Usage

is_horizontal(data, mapping, val = "y")

is_character_column(data, mapping, val = "y")

Arguments

data

data used in ggplot2 plot

mapping

ggplot2 aes() mapping

val

key to retrieve from mapping

Value

Boolean determining if the data is a character-like data

Examples

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

ggobi/ggally documentation built on April 13, 2024, 3:24 p.m.