geom_sigmark_waves_interactive: Significance Markers for ggplot2

Description Usage Arguments Details Note

View source: R/geom_sigmark_waves_interactive.R

Description

Apply significance markers onto an existing ggplot2 chart

Usage

1
2
3
4
geom_sigmark_waves_interactive(tbl_sig, x = "wave_pos", y = "result_pos",
  group = NULL, direction = "Direction", labels = c("Increase",
  "Decrease"), colour = "level", fill = "level", tooltip = NULL,
  data_id = NULL, icon = "full triangle", size = 5)

Arguments

tbl_sig

A df object created from tbl_sig functions.

x

A quoted character string of the variable from the 'tbl_sig' df charted on the x-axis. Typically this is "level".

y

A quoted character string of the variable from the 'tbl_sig' df charted on the y-axis. Typically this is "pos".

group

An optional quoted character string of the variable from the 'tbl_sig' df that is grouped. If needed, it likely needs to be "group".

direction

A quoted character string of the variable from the 'tbl_sig' df indicating whether the change from one wave to the next is up or down. Typically this is "direction".

labels

A quoted character string vector indicating how the sig. test markers should be labeled in the legend. By default, the labels are "Increase" and "Decrease".

colour

A quoted character string of the variable from the 'tbl_sig' df that applies the subgroup colours. Typically this is "level".

fill

A quoted character string of the variable from the 'tbl_sig' df that applies the subgroup colours. Typically this is "level".

tooltip

A quoted character string of the variable from the 'tbl_sig' df that will be displayed when the mouse hovers a sigmark object. See ggiraph for more details.

data_id

A quoted character string of the variable from the 'tbl_sig' df that will be highlighted when the user clicks on a sigmark object. See ggiraph for more details.

icon

A quoted character string indicating the type of icon to display to denote statistical significance.

size

A numeric value indicating the size of the icon. Default is set to 5.

Details

This is essentially a wrapper for geom_point_interactive

Note

The icon argument accepts one of the following strings:


philstraforelli/ggsigmark documentation built on May 20, 2019, 1:59 p.m.