add_and_overwrite_aes | R Documentation |
Add new aesthetics to a previous aes.
add_and_overwrite_aes(current, new)
aes_ output
Barret Schloerke
data(diamonds, package = "ggplot2")
diamonds.samp <- diamonds[sample(1:dim(diamonds)[1], 1000), ]
pm <- ggpairs(diamonds.samp,
columns = 5:7,
mapping = ggplot2::aes(color = color),
upper = list(continuous = "cor", mapping = ggplot2::aes(color = clarity)),
lower = list(continuous = "cor", mapping = ggplot2::aes(color = cut)),
title = "Diamonds Sample"
)
str(pm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.