A class for creating and managing scatterplot objects with enhanced visualization features.
Creates an instance of the ClearScatterplot class.
ClearScatterplot(
data,
logFoldChange = "log2fc",
negativeLogPValue = "negLog10p",
highLog2fc = 0.585,
lowLog2fc = -0.585,
negLog10pValue = 1.301,
timePointColumn = "timePoint",
timePointLevels = NULL
)
A data frame containing the plot data.
The name of the column containing expression values.
The column containing the negative log p-values.
Threshold for high log2 fold change values.
Threshold for low log2 fold change values.
Threshold for -log10 p-value.
The name of the column containing time point info.
The levels for the time point column, if any.
An object of class ClearScatterplot.
data
A data frame containing the data to be plotted.
plot
An object storing the ggplot representation of the data.
plotdata <- get_clear_scatterplot_df()
scatterplotObject <- ClearScatterplot(
data = plotdata,
logFoldChange = "log2fc",
timePointColumn = "timePoint",
timePointLevels = c("T10R1", "T5R1")
)