R: ca plotting text attributes
- by chasec
Does anyone know of a way to control the font size/color/weight of the row and column names when plotting a correspondence plot with the ca package?
The following code will produce a very nice looking chart, though if there were more attributes (very heavy, super heavy, something more than super heavy) or more classes of workers (peons, underlings, etc) then the graph will get a little cluttered and hard to tell what was what.
It would be nice if you could list all the attributes in a separate color than the categories of workers.
library(ca)
data("smoke")
plot(ca(smoke)
, map = "symmetric"
, what =c("active","active")
, mass = c(T,T)
, contrib = "absolute"
, col = c("red","blue")
, pch = c(15,17,15,17)
, labels = c(2,2)
, arrows = c(T,F)
)
Alternatively, does anyone know if there is a way to reproduce something along these lines with ggplot2? I didn't find anything on the website that seemed comparable, but I don't know much about the package.
Thanks,
-Chase