[R] Draftsman plot axis modification

From: Michael Dolch <Michael.Dolch_at_med.uni-muenchen.de>
Date: Mon, 16 May 2011 22:29:22 +0200


Dear all,

I want to draw a draftsman plot using the pairs function and omit the axis labels of the diagonal panel which does not work. Is it also possible to remove the boxes of the diagonal panel?

Here is an example what the graph looks like

##################################
PC1<-c(1.1,1.2,1.9,2.0,2.5,2.6)

PC2<-PC1+2
PC3<-PC2+4
group<-factor(c("A","A","B","B","C","C"))

dat<-data.frame(group,PC1,PC2,PC3)

pairs(dat[2:4],upper.panel=NULL,pch=21, bg=c("red","blue","green")[unclass(dat$group)], cex=2)

##############################

I would appreciate to receive any tips to solve my problem.

Thanks in advance,

Michael

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
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. Received on Mon 16 May 2011 - 22:15:08 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 May 2011 - 22:20:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive