tricolor: Tricolor

View source: R/easyplots.R

tricolorR Documentation

Tricolor

Description

Tricolor

Usage

tricolor(.data, x, y, ul = 0, ll = 0, ...)

Arguments

.data

dataframe to plot

x

value

y

group

ul

upper limit

ll

lower limit

...

Additional parameters

Value

A grouped tidybayes halfeye plot coloured according to value

Examples


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)


Agasax/laRs documentation built on Oct. 21, 2022, 3:09 p.m.