hi thank you for the response. i tried it but the histograms do not have metadata information like group type and sample type. how do i add that
below is the code that i am using..
plotPCA <- function (object, intgroup=c("condition"), ntop = 500, returnData = FALSE)
{
.
.
.
.
p <- ggplot(data = d, aes_string(x = "PC3", y = "PC4", color = "group")) +
geom_point(size = 3) + xlab(paste0("PC3: ", round(percentVar[3] *
100), "% variance")) + ylab(paste0("PC4: ", round(percentVar[4] *
100), "% variance")) + coord_fixed()
p_with_marginals <- ggMarginal(p, type = "histogram",groupfill=TRUE)
print(p_with_marginals)
}
print(plotPCA(vsd, intgroup=c("Group", "type")))