data <- read.csv(system.file("extdata", "data_2factorBlock3ref.csv", package = "rtpcr"))
res <- ANOVA_DDCt(x = data,
numOfFactors = 2,
numberOfrefGenes = 3,
block = "block",
mainFactor.column = 2,
p.adj = "none")
df <- res$relativeExpression
p1 <- plotFactor(
data = df,
x_col = "contrast",
y_col = "RE",
group_col = "gene",
facet_col = "gene",
Lower.se_col = "Lower.se.RE",
Upper.se_col = "Upper.se.RE",
letters_col = "sig",
letters_d = 0.2,
alpha = 1,
col_width = 0.7,
dodge_width = 0.7,
base_size = 14,
legend_position = "none")
p1
data2 <- read.csv(system.file("extdata", "data_3factor.csv", package = "rtpcr"))
#Perform analysis first
res <- ANOVA_DCt(
data2,
numOfFactors = 3,
numberOfrefGenes = 1,
block = NULL)
df <- res$relativeExpression
# Generate three-factor bar plot
p <- plotFactor(
df,
x_col = "SA",
y_col = "log2FC",
group_col = "Type",
facet_col = "Conc",
Lower.se_col = "Lower.se.log2FC",
Upper.se_col = "Upper.se.log2FC",
letters_col = "sig",
letters_d = 0.3,
col_width = 0.7,
dodge_width = 0.7,
#fill_colors = c("blue", "brown"),
color = "black",
base_size = 14,
alpha = 1,
legend_position = c(0.1, 0.2))
p
Run the code above in your browser using DataLab