plot_RatiosPG | R Documentation |
The 'x' values are expected to be log2() transformed already.
plot_RatiosPG(df_ratios, d_range, main_title, main_col, legend_title)
df_ratios |
A data.frame with columns 'x', 'y', 'col', 'ltype' |
d_range |
X-axis range of plot |
main_title |
Plot title |
main_col |
Color of title |
legend_title |
Legend text |
GGplot object
x1 = seq(-3, 3, by = 0.1)
y1 = dnorm(x1)
x2 = seq(-5, 1, by = 0.1)
y2 = dnorm(x2, mean = -1)
data = data.frame( x = c(x1,x2),
y = c(y1,y2),
col = c(rep("ok", length(x1)), rep("shifted", length(x2))),
ltype = c(rep("solid", length(x1)), rep("dotted", length(x2))))
plot_RatiosPG(data, range(data$x), "Ratio plot", "red", "group")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.