View source: R/dplot_response_profile.R
dplot_response_profile | R Documentation |
create a barplot of a DoOR response profile
dplot_response_profile(receptor,
response_matrix = door_default_values("door_response_matrix"),
odor_data = door_default_values("odor"), tag = door_default_values("tag"),
colored = TRUE, colors = door_default_values("colors"), limits,
zero = door_default_values("zero"),
scalebar = door_default_values("scalebar"), base_size = 12)
receptor |
character, receptor name, any of colnames(door_response_matrix) |
response_matrix |
a DoOR door_response_matrix |
odor_data |
data frame, contains the odorant information. |
tag |
character, chemical identifier for annotation |
colored |
logical, color code the bars according to the response value? |
colors |
character vector, a vector of 5 colors (2 for values < 0, 1 value for 0 and 3 values > 0) |
limits |
numeric of length 2, the limits for the colorscale and the x axis, global range of data will be used if empty |
zero |
character, the odorant response that is set to 0, defaults to "SFR" |
scalebar |
logical, add or suppress scalebars |
base_size |
numeric, the base font size for the ggplot2 plot |
ggplot2 plot
Daniel Münch <daniel.muench@uni-konstanz.de>
# load data
library(DoOR.data)
data(door_response_matrix)
# plot with default parameters
dplot_response_profile("Or22a", door_response_matrix)
# plot wit odorant names
dplot_response_profile("Or22a", door_response_matrix, tag = "Name")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.