[R] Problem in graph plotting

2009-09-23 Thread FMH
Dear All, Let: dp: depth of the river tp: temperature with respect to depth We can have a simple scatter plot, between depth as y-axis and temperature as x-axis, by using a plot function as shown below. #  dp - c(1,4,3,2,5,7,9,8,9,2) tp - 1:10 plot(tp,dp, type= 'l')

Re: [R] Problem in graph plotting

2009-09-23 Thread jim holtman
try this: plot(tp,dp, type= 'l',ylim=rev(range(dp))) On Wed, Sep 23, 2009 at 7:58 AM, FMH kagba2...@yahoo.com wrote: Dear All, Let: dp: depth of the river tp: temperature with respect to depth We can have a simple scatter plot, between depth as y-axis and temperature as x-axis, by

Re: [R] Problem in graph plotting

2009-09-23 Thread David Winsemius
On Sep 23, 2009, at 7:58 AM, FMH wrote: Dear All, Let: dp: depth of the river tp: temperature with respect to depth We can have a simple scatter plot, between depth as y-axis and temperature as x-axis, by using a plot function as shown below. # dp -

Re: [R] Problem in graph plotting

2009-09-23 Thread Jim Lemon
On 09/23/2009 09:58 PM, FMH wrote: Dear All, Let: dp: depth of the river tp: temperature with respect to depth We can have a simple scatter plot, between depth as y-axis and temperature as x-axis, by using a plot function as shown below. # dp- c(1,4,3,2,5,7,9,8,9,2) tp-

Re: [R] Problem in graph plotting

2009-09-23 Thread baptiste auguie
Hi, It's trivial with ggplot2, library(ggplot2) qplot(tp,dp, geom=line) + scale_y_reverse() HTH, baptiste 2009/9/23 David Winsemius dwinsem...@comcast.net: On Sep 23, 2009, at 7:58 AM, FMH wrote: Dear All, Let: dp: depth of the river tp: temperature with respect to depth We can have

Re: [R] Problem in graph plotting

2009-09-23 Thread baptiste auguie
: Wednesday, September 23, 2009 1:04:21 PM Subject: Re: [R] Problem in graph plotting try this: plot(tp,dp, type= 'l',ylim=rev(range(dp))) On Wed, Sep 23, 2009 at 7:58 AM, FMH kagba2...@yahoo.com wrote: Dear All, Let: dp: depth of the river tp: temperature with respect to depth We can have

Re: [R] Problem in graph plotting

2009-09-23 Thread Henrique Dallazuanna
: Wednesday, September 23, 2009 1:04:21 PM Subject: Re: [R] Problem in graph plotting try this: plot(tp,dp, type= 'l',ylim=rev(range(dp))) On Wed, Sep 23, 2009 at 7:58 AM, FMH kagba2...@yahoo.com wrote: Dear All, Let: dp: depth of the river tp: temperature with respect to depth We can have