View source: R/dplot_compare_profiles.R
dplot_compare_profiles | R Documentation |
Orderdered bar plots for two studies, allowing for an easy comparison of the two studies / response profiles'.
dplot_compare_profiles(x, y, by.x, by.y, tag = "Name", base_size = 12)
x |
the input data frame the first response profile will be taken from |
y |
the input data frame the second response profile will be taken from (x will be taken if y is missing) |
by.x |
character string, specifying a column in x |
by.y |
character string, specifying a column in y |
tag |
character, the chemical identifier that will be used as odorant label. |
base_size |
numeric, the base font size for the ggplot2 plot |
Daniel Münch <daniel.muench@uni-konstanz.de>
# load data
library(DoOR.data)
library(DoOR.functions)
data(Or22a)
data(door_response_range)
data(door_response_matrix)
# compare the Hallem and the Pelz data set for Or22a
dplot_compare_profiles(x = Or22a, y = Or22a,
by.x = "Hallem.2006.EN",
by.y = "Pelz.2006.AntEC50")
# comparedata from two different sensory neurons and add odorant labels
dplot_compare_profiles(x = cbind(door_response_matrix, InChIKey =
rownames(door_response_matrix)), y = cbind(door_response_matrix, InChIKey =
rownames(door_response_matrix)), by.x = "Or22a", by.y = "Or10a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.