# See a sample data frame
data_2factor
# Before generating plot, the result table needs to be extracted as below:
res <- qpcrANOVARE(data_2factor, numberOfrefGenes = 1, block = NULL)$Result
# Plot of the 'res' data with 'Genotype' as grouping factor
twoFACTORplot(res,
x.axis.factor = Drought,
group.factor = Genotype,
width = 0.5,
fill = "Greens",
y.axis.adjust = 1,
y.axis.by = 2,
ylab = "Relative Expression",
xlab = "Drought Levels",
letter.position.adjust = 0.2,
legend.position = c(0.2, 0.8),
errorbar = "se")
# Plotting the same data with 'Drought' as grouping factor
twoFACTORplot(res,
x.axis.factor = Genotype,
group.factor = Drought,
xlab = "Genotype",
fill = "Blues",
fontsizePvalue = 5,
errorbar = "ci")
# Combining FC results of two different genes:
a <- qpcrREPEATED(data_repeated_measure_1,
numberOfrefGenes = 1,
factor = "time", block = NULL, plot = FALSE)
b <- qpcrREPEATED(data_repeated_measure_2,
factor = "time",
numberOfrefGenes = 1, block = NULL, plot = FALSE)
a1 <- a$FC_statistics_of_the_main_factor
b1 <- b$FC_statistics_of_the_main_factor
c <- rbind(a1, b1)
c$gene <- factor(c(1,1,1,2,2,2))
c
twoFACTORplot(c, x.axis.factor = contrast,
group.factor = gene, fill = 'Reds',
ylab = "FC", axis.text.x.angle = 45,
errorbar = "se", y.axis.adjust = 1,
axis.text.x.hjust = 1)
Run the code above in your browser using DataLab