[R] flipping a plot vertically?
Chuck Cleland
ccleland at optonline.net
Thu Jun 15 20:32:25 CEST 2006
plot(runif(20), xaxt="n", ylim=c(1,0))
axis(side = 3)
Tim Brown wrote:
> That works great. Thanks.
>
> Any idea how to get the x axis numbers to go
> along the top instead of the bottom?
>
> tim
>
> At 11:46 AM 6/15/2006, you wrote:
>> [Tim Brown]
>>
>>> This seems like an obvious question but I can't
>>> find the answer in the "par" help document ---
>>> I'd like to make a plot where the 0,0 point is
>>> in the top left of the screen rather than
>>> bottom left... . [...] Any suggestions?
>> You might retry your plot, adding an ylim=c(HIGHEST, LOWEST) argument,
>> that is, listing the maximum before the minimum. For example:
>>
>> plot(1:10, ylim=c(10, 1))
>>
>> --
>> François Pinard http://pinard.progiciels-bpi.ca
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
--
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894
More information about the R-help
mailing list