To generate a 2D colour density plot, it requires three sets of values:
- X-axis
- Y-axis
- Colour density data.
This is three columns in a data frame.
Some interesting advice here: https://www.biostars.org/p/73193/
As a by the way, I noticed another way to make a new data frame:
DF2 <- data.frame(wells4$WC.488_Int, wells4$WC.546_Int, wells4$S.phase_cells_Nuc_cnt)
This creates a data.frame with the columns from the other data frame.
Useful to know!
I don't really have my head around ggplot yet.
Arghh!
Some useful stuff here: http://www.statmethods.net/advgraphs/ggplot2.html
No comments:
Post a Comment