Skip to content
Back to formatted view

Raw Message

Message-ID: <1361248169.29116.YahooMailNeo@web142603.mail.bf1.yahoo.com>
Date: 2013-02-19T04:29:29Z
From: arun
Subject: how to change the plot from X-axis to Y-axis
In-Reply-To: <CAMUSh4qKDMZR1arqhAWrwXakLAth0PThR2gx9aYfuUoMhg3hoA@mail.gmail.com>

Hi
?plot(totdata,seq_along(totdata),type='l',pch=1,lty=1,col='blue',lwd=1)
A.K.






----- Original Message -----
From: Jie Tang <totangjie at gmail.com>
To: r-help at r-project.org
Cc: 
Sent: Monday, February 18, 2013 10:17 PM
Subject: [R] how to change the plot from X-axis to Y-axis

hello ,Rusers:
I have a dataset for example
totdata=c(8.020 7.412 8.110 8.270)
plot(totdata[1:4],type='l',pch=1,lty=1,col='blue',lwd=1)

and the data could be plotted as the attachment figure.

now I want to exchange its x-axis and y-axis in the figure? .How could I
modify the plot command ?

thank you
-- 
TANG Jie

______________________________________________
R-help at 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.