plot_plasticityIndex: plot_plasticityIndex

Description Usage Arguments Examples

View source: R/plot_plasticityIndex.R

Description

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().

Usage

1
2
3
plot_plasticityIndex(df, xvar = strain, dot_color = strain,
  palette = main, BayesFit = FALSE, width = 0.5, alpha = 1,
  bar = FALSE, n_pos = -3, ...)

Arguments

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

Examples

1

mikeod38/ProvidenciaChemo documentation built on April 6, 2020, 11:57 p.m.