[R] Origin of coordinate system

Richard Müller mueller.eisborn at googlemail.com
Thu Aug 23 12:08:29 CEST 2012


Thank you for your answer. That's the workaround I use - but that's
not what I intended: the resulting graph looks correct. I used this
approach a hundred times. But the ugly thing remains: the x-values
(independent variables) are treated as y-values, and the y-values
(dependent variables, f(x)) as if they were x-values.But what if I
have several f(x) values for one x-value, and want to create an error
bar or similar? Therefore my question: How can I plot x-values from
top to bottom an y-values from left to right _without_ "masquerading"
them as y resp. x?

Richard

2012/8/23 S Ellison <S.Ellison at lgcgroup.com>:
> See ?par etc
>
> Setting ylim  sets the bottom and top of the plot respectively, so
> plot(1:10, ylim=c(11,0), xlim=c(0,11), ylab='depth')

-- 
Richard Müller . Am Spring 9 . D-58802 Balve
www.oeko-sorpe.de




More information about the R-help mailing list