Hello,
  I've been struggling for more than a few hours with a very simple problem
having to do with axis labeling and haven't had any success searching in the
online resources for the proper syntax.  This is the basic task I'm trying
to accomplish:

I want to label the tick marks on a contour graph with .1, .2., .3.... 1 on
both the x and y axes.  The default is for them to be labeled 1, 2, 3....10
after the column and row lengths.  I've been able to get a single tick mark
properly labeled using "axis(1, at = 1, labels = .1)" but I simply can't
figure out how to get more than just one tick mark labeled properly.

The full code I'm using for the contour graph is below, in case that helps.

Thanks in advance for your help,
Athena

filled.contour(x, y, z, col = rainbow(30),
     plot.title = title(main = "Proportion Cooperators as a Function of\n
Cooperator and Defector Thresholds",
     xlab = "Defector Threshold", ylab = "Cooperator Threshold"),
     plot.axes = { axis(1, at = 1, labels = .1)
                   axis(2, seq(0, 10, by = 1)) },
     key.title = title(main="Coop\n(%)"),
     key.axes = axis(4, seq(0, 100, by = 10)))# maybe also asp=1
 mtext(paste("filled.contour(.) from", R.version.string),
       side = 1, line = 4, adj = 1, cex = .66)


-- 
C. Athena Aktipis
Ecology and Evolutionary Biology
University of Arizona
www.athenaaktipis.com



-- 
C. Athena Aktipis
Ecology and Evolutionary Biology
University of Arizona
www.athenaaktipis.com

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to