View source: R/append_to_column.R
append_to_column | R Documentation |
Appends a dynamic string to a column condition on whether the another column 'significant' is true or false.
append_to_column( data, sig_text = "(significant)", insig_text = "(not significant)", from = "dataset", to = "dataset", nchar_max = NULL, nchar_max_collapse = "<br>" )
data |
a data or overlay data.frame with |
sig_text |
what should be the significance text? |
insig_text |
what should be the insignificance text? |
from |
what column should be appended? |
to |
where should be appended column be inserted? |
nchar_max |
integer. maximum amount of characters (incl spaces) in the group. NULL means that there is no limit. |
nchar_max_collapse |
what should be the line seperator when nchar_max is specified? |
In order to correctly draw plotly points the identifier (dataset) must have a unique colors associated with it. This function appends the dataset column with a significance text.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.