[R] Howto reduce number of ticks in X, Y axis while still containing all the data

From: Gundala Viswanath <gundalav_at_gmail.com>
Date: Fri, 20 Jun 2008 14:37:37 +0900


I am trying to plot 100 x 100 matrix data in a level plot. The problem I have is that the x/y -axis label in ticks are jumbled together. Thus I want X/Y axis to contain 10 ticks only, yet still plotting all the 100 data.

Is there a way to do it?
The code I have below doesn't work.

# Corr contains 100x100 matrix

corr <- cor(t(mat.data), method ="pearson")

# Plot them

levelplot(corr, main="PCC of Top-100 Genes",
                scale=list(y=list(tick.number=10)) # Doesn't work

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 Fri 20 Jun 2008 - 06:02:41 GMT

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 Fri 20 Jun 2008 - 09:31:01 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