On Apr 3, 2012, at 11:16 PM, David Lyon wrote:
Sorry that didnt work for me, any ideas?
You _could_ indicate which package the image.plot function comes from.
You _could_ include dput on a sufficient segment of `data1` to offer a
reproducible test case. You _could_ indicate in what fashion the
axis() call "didn't work". I used to look such matters up, add code
and make guesses, but got tired of doing extra work that was really
the responsibility of the questioner.
--
David
----- Original Message -----
From: ilai <ke...@math.montana.edu>
To: David Lyon <david_ly...@yahoo.com>
Cc: "r-help@r-project.org" <r-help@r-project.org>
Sent: Tuesday, April 3, 2012 10:43 PM
Subject: Re: [R] image.plot adding x-axis labels. Please Help
On Tue, Apr 3, 2012 at 7:25 PM, David Lyon <david_ly...@yahoo.com>
wrote:
if I had a data file like this:
1.42 1.29 -0.13
1.46 1.34 -0.12
1.45 1.32 -0.13
1.36 1.26 -0.10
1.33 1.29 -0.04
I want to create a image plot like this:
data1<-read.table("A")
image.plot(t(data1), axes=FALSE, xlab=NA, ylab=NA)
I cant get the labels for the x axis right can some kind person
help me?
axis(1,at=seq(0,1,l=ncol(data1)),labels=LETTERS[1:ncol(data1)])
axis(1.....???????.....labels=c("A", "B", "C"))
Many thanks in advance!
______________________________________________
R-help@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.
______________________________________________
R-help@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.
David Winsemius, MD
West Hartford, CT
______________________________________________
R-help@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.