View source: R/draw_GeneTraj.R
draw_GeneTraj | R Documentation |
This function takes the master.list object output from run_TrendCatcher function, and an array of gene(s). It will draw gene(s) trajectory with observed data and fitted data.
draw_GeneTraj(
master.list,
gene.symbol.arr,
savepdf.path = NA,
ncol = 5,
nrow = 3,
fig.width = 15,
fig.height = 10
)
master.list, |
a list object. Output from the run_TrendCatcher with ID conversion to add Symbol column to master table. |
gene.symbol.arr, |
a character array. It must be a subset of row names from the master.list$master.table$Symbol. The Symbol column need get_GeneEnsembl2Symbol function to convert original ensembl ID into gene symbol. |
savepdf.path, |
an obsolute file path to save the figure as PDF file. By default is NA, it will be printed. |
ncol, |
an integer variable. If more than one gene need to be plotted, it will layout as grid structure. This represents the number of column of the grid layout. |
nrow, |
an integer variable. If more than one gene need to be plotted, it will layout as grid structure. This represents the number of row of the grid layout. |
fig.width, |
a numeric variable. If save figure as PDF file, the width of the PDF file. By default is 15. |
fig.height, |
a numeric variable. If save figure as PDF file, the height of the PDF file. By default is 10. |
"arrangelist" "list" object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.