I'm running sPCA's and it appears that my first four PCs are significant. I can produce nice plots with black and white squares but would love to also use a colorplot. However, I can't figure out how I can plot more than 3 PCs at a time. Is there a way I can plot the first 4?
Since the colorplot is based on RGB space, it's limited to three axes. That being said, you have a couple of options:
you could scale your fourth PC from 0 to 1 and use it as the alpha parameter (with transp = TRUE)
the colorplot function returns the colors for the three PCs, so you could use those to color a custom plot where size is scaled by absolute value of the 4th PC and shape is based on whether or not those values are negative or positive.
Hi Thibaut and community,
I'm running sPCA's and it appears that my first four PCs are significant. I can produce nice plots with black and white squares but would love to also use a colorplot. However, I can't figure out how I can plot more than 3 PCs at a time. Is there a way I can plot the first 4?
Cheers, Katrin