tricolor | R Documentation |
Tricolor
tricolor(.data, x, y, ul = 0, ll = 0, ...)
.data |
dataframe to plot |
x |
value |
y |
group |
ul |
upper limit |
ll |
lower limit |
... |
Additional parameters |
A grouped tidybayes halfeye plot coloured according to value
library(tidyverse) df <- tibble(a = rnorm(1e4, 0, 1), b = rnorm(1e4, 0.25, 1)) %>% pivot_longer(cols = everything(), names_to = "y", values_to = "x") df %>% tricolor(x = x, y = y, ul = 0.1, ll = -0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.