Plot the total RNA expression vs the new-to-total RNA ratio for a gene
PlotGeneTotalVsNtr(
data,
gene,
slot = DefaultSlot(data),
columns = NULL,
log = TRUE,
show.CI = FALSE,
aest = NULL,
size = 2
)
a ggplot object.
the grandR object to get the data to be plotted from
the gene to plot
the slot of the grandR object to get the data from
which columns (i.e. samples or cells) to show (see details)
show the x axis (total RNA) in log scale
show confidence intervals; one of TRUE/FALSE (default: FALSE)
parameter to set the visual attributes of the plot
the point size used for plotting; overridden if size is defined via aest
The value of the aest parameter must be an Aesthetic mapping as generated by aes.
The table used for plotting is the table returned by GetData with coldata set to TRUE, i.e. you can use all names from the Coldata table for aest.
By default, aest is set to aes(color=Condition,shape=Replicate) (if both Condition and Replicate are names in the Coldata table).
Columns can be given as a logical, integer or character vector representing a selection of the columns (samples or cells).
The expression is evaluated in an environment having the Coldata
, i.e. you can use names of Coldata
as variables to
conveniently build a logical vector (e.g., columns=Condition=="x").
GetData, PlotGeneOldVsNew,PlotGeneGroupsPoints,PlotGeneGroupsBars