# Small function to display plots only if it's interactive
p_ <- GGally::print_if_interactive
data(tips)
p_(ggally_ratio(tips, ggplot2::aes(sex, day)))
p_(ggally_ratio(tips, ggplot2::aes(sex, day)) + ggplot2::coord_equal())
# only plot tiles greater or equal to 20 and scale to a max of 50
p_(ggally_ratio(
tips, ggplot2::aes(sex, day),
floor = 20, ceiling = 50
) + ggplot2::theme(aspect.ratio = 4 / 2))
Run the code above in your browser using DataLab