Re: [R] Removing X and Y labels in graph error

2011-02-08 Thread poolmunch
Hey thanks for all the help, I did end up using layout, par, mar to reduce the labelling area and combine it with other plots. I also now understand NULL was the wrong argument to place in the field. Thanks again -- View this message in context: http://r.789695.n4.nabble.com/Removing-X-and-Y

Re: [R] Plot using treatment letter as points

2011-02-08 Thread poolmunch
in ?plot it says that type ="n" displays everything but the actual points, so that you can display the characters on top using the text function -- View this message in context: http://r.789695.n4.nabble.com/Plot-using-treatment-letter-as-points-tp3276743p3276804.html Sent from the R help mailin

Re: [R] Plot using treatment letter as points

2011-02-08 Thread poolmunch
xyplot(Y~X,groups = TRT,type=n) to plot the space but not the points, then use the text function to display the characters. Try ?text in R -- View this message in context: http://r.789695.n4.nabble.com/Plot-using-treatment-letter-as-points-tp3276743p3276775.html Sent from the R help mailing l

[R] Removing X and Y labels in graph error

2011-02-08 Thread poolmunch
Hello, had a quick search on the site but no luck. Heres my problem, when attempting to xlab = NULL and ylab = NULL it displays x[[1L]] and X[[2L]] as labels on the axis. plot(USSenate[,1:2],col=c("blue","grey","red")[unclass(USSenate$Senate)],pch=unclass(USSenate$Senate), type="n",xaxt="n", y

Re: [R] Creating subsets of a matrix

2011-01-23 Thread poolmunch
# 4 . (a) Create subvectors, one for boys and one for girls. bmi.male <- subset(bmi, gender == "male") # Creates a subset of bmi with male only values n=30 bmi.female <- subset(bmi, gender == "female") # Creates a subset of bmi with female only values n=30 male.bmi.only <-(bmi.m

[R] Creating subsets of a matrix

2011-01-23 Thread poolmunch
Hello, Say I have 2 columns, bmi and gender, the first being all the values and the second being male or female. How would I subset this into males only and females only? I have searched these fora and read endlessly about select[] and split() functions but to no avail. Also the table is not ord