[R] How to remove the grid around the plot(ca(...)) function?
David L Carlson
dcarlson at tamu.edu
Thu Oct 8 23:52:43 CEST 2015
You will have to construct it yourself using plot(), points(), and text():
> d1.ca <- ca(d1)
> d1.plt <- plot(d1.ca)
d1.ca$rowmass will contain the row masses and d1.ca$colmass the column masses
d1.ca$rownames and d1.ca$colnames, the names
d1.plt$rows has the row coordinates and d1.plt$cols, the column coordinates.
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Luca Meyer
Sent: Thursday, October 8, 2015 1:07 PM
To: r-help
Subject: [R] How to remove the grid around the plot(ca(...)) function?
Hello R-experts,
Could anyone suggest how I can remove the grid coming out of the
plot(ca(...)) function?
For instance I have:
library(ca)
v1 <- c(10,15,20,15,25)
v2 <- c(23,4,7,12,2)
v3 <- c(10,70,2,3,7)
d1 <- data.frame(v1,v2,v3)
rownames(d1) <- c("B1","B2","B3","B4","B5")
plot(ca(d1), mass = c(TRUE,FALSE), xlab="", ylab="")
As you can I could remove the X and Y axis label, but basically I am
looking for a chart containing only the data points - with relative inertia
represented by their size - and labels with no extra lines or number, any
clue on how I can do that?
Thank you,
Luca
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list