Description Usage Arguments Details Note
View source: R/geom_sigmark_interactive.R
Apply significance markers onto an existing ggplot2 chart
1 2 3 |
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" or "group". |
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". |
colour |
A quoted character string of the variable from the 'tbl_sig' df that applies the subgroup colours. Typically this is "sign". |
icon |
A quoted character string indicating the type of icon to display to denote statistical significance. |
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. |
size |
A numeric value indicating the size of the icon. Default is set to 5. |
This is essentially a wrapper for geom_point_interactive
The icon argument accepts one of the following strings:
full triangle up
full triangle down
clear triangle up
clear triangle down
arrow up
arrow down
finger up
finger down
full star
clear star
checkmark
asterisk
heart
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.