Description Usage Arguments Examples
View source: R/plot_plasticityIndex.R
This function is used to plot a modulation, ie a relative change in log odds of a chemotaxis response. In principle, this function could be used to plot other relative proportion data. The plot is relative to a common control, and expects output from format_AvoidData().
1 2 3 |
xvar |
x-axis before facetting. This should be the variable that will divide the nearest data categories. Usually this is "strain" - the food source. |
dot_color |
factor by which to order the color categories |
palette |
see eg using plot_color_themes |
BayesFit |
optional to include a Bayes credile interval based on posterior draws. Must have a "fitted" object which is derived from recenter_fittedValues() function. If using this, the xvar is locked to "data_type" column to align the raw data and fitted values. Additional orienting of the data needs to be done by facetting. |
width |
width of horizontal elements, median, error bars. |
data |
dataset used to plot, must be proportion data |
1 | data %>% plot_plasticityIndex()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.