Re: [R] ggplot2::qplot() -- arbitary transformations of coordinate system?

2009-09-12 Thread hadley wickham
Is there a place to find a list of the legal values for the coord_trans parameters. I spent a bunch of time searching the ggplot2 docs and r-help for same without success. I also made an attempt at looking at the code in R which also failed. In the book, or with apropos(^Trans, ignore = F)

Re: [R] ggplot2::qplot() -- arbitary transformations of coordinate system?

2009-09-06 Thread Michael Kubovy
Hi Stephen, Because coord_trans() does all the work of plotting the original values on the tranformed scale. See ?coord_trans. To quote: The difference between transforming the scales and transforming the coordinate system is that scale transformation occurs BEFORE statistics, and

Re: [R] ggplot2::qplot() -- arbitary transformations of coordinate system?

2009-09-06 Thread hadley wickham
Hi Michael, You could use aes(y = 1000 * myyvar) and coord_trans(trans_y = inverse) Hadley On Sun, Sep 6, 2009 at 6:30 AM, Michael Kubovykub...@virginia.edu wrote: Hi Stephen, Because coord_trans() does all the work of plotting the original values on the tranformed scale. See ?coord_trans.

Re: [R] ggplot2::qplot() -- arbitary transformations of coordinate system?

2009-09-06 Thread David Winsemius
Is there a place to find a list of the legal values for the coord_trans parameters. I spent a bunch of time searching the ggplot2 docs and r-help for same without success. I also made an attempt at looking at the code in R which also failed. -- David. On Sep 6, 2009, at 10:12 AM, hadley

[R] ggplot2::qplot() -- arbitary transformations of coordinate system?

2009-09-05 Thread Michael Kubovy
Hi, Does anyone know how to do a coord_trans() in which the y-axis is tranformed into (for example) -1000/y? Thanks, _ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400Charlottesville, VA 22904-4400 Parcels:

Re: [R] ggplot2::qplot() -- arbitary transformations of coordinate system?

2009-09-05 Thread stephen sefick
why not transform the y-data? On Sat, Sep 5, 2009 at 8:03 PM, Michael Kubovykub...@virginia.edu wrote: Hi, Does anyone know how to do a coord_trans() in which the y-axis is tranformed into (for example) -1000/y? Thanks, _ Professor Michael Kubovy University of