View source: R/DCP_GraphFunctions.R
DCP_PlotPeakRadar | R Documentation |
Radar plot of peak time Make a circos histogram plot for peak time.
DCP_PlotPeakRadar( x, TOJR = NULL, RhyBothOnly = FALSE, sig.cut = list(param = "pvalue", fun = "<", val = 0.05), time.start = -6, Info1 = "groupI", Info2 = "groupII", filename = NULL, file.width = 8, file.height = 8, color = NULL, single.binwidth = 2, axis.text.size = 12, legend.position = "right" )
x |
DCP_Rhythmicity() output |
TOJR |
toTOJR output. If NULL, rhythm.joint object in x will be used. |
RhyBothOnly |
For two-group output, plot only RhyBoth genes or all rhythmic genes in separate groups? |
sig.cut |
A list. Used only for single-group plot, only genes satisfying sig.cut will be plotted. If NULL then genes all genes in regardless of significance in rhythmicity will be plotted.
|
time.start |
numeric. What time do you want the phase start? Default is -6, which is midnight if time is in ZT scale. |
Info1 |
character string. Used in the plot title for group I |
Info2 |
character string. Used in the plot title for group II (if exist). |
filename |
character string. The filename for plot export. If NULL, the plot will not be saved. |
file.width |
width of the export plot |
file.height |
height of the export plot |
color |
Input color. The length of the vector should be the same of the number of the groups. |
single.binwidth |
numeric. The binwidth for plotting peak histogram. |
axis.text.size |
Size for the axis text. |
legend.position |
One of "left”, "top", "right", "bottom", or "none" |
a ggplot2 object
x = DCP_sim_data(ngene=1000, nsample=30, A1=c(2, 3), A2=c(2, 3), phase1=c(0, pi/4), phase2=c(pi/2, pi*3/2), M1=c(4, 6), M2=c(4, 6), sigma1=1, sigma2=1) rhythm.res = DCP_Rhythmicity(x1 = x[[1]], x2 = x[[2]]) # Make a two-group plot: DCP_PlotPeakRadar(rhythm.res) # Make a one-group plot DCP_PlotPeakRadar(rhythm.res$x1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.