Dear Trying:
after
g <- read.table("ip.txt")
enter
str(g)
You will see that g is a dataframe with one variable, called V1. V1
contains the data you want to plot.
So type
plot(g$V1, type="l")
or
with(g, plot(V1, type="l"))
or, if you prefer to attach g:
attach(g)
plot(V1, type="l")
--
On May 23, 2012, at 6:11 PM, Trying To learn again wrote:
Hi all
Sorry in advance
I have this txt with data and I want to plot the data with a line
between
dots.
The thing is that if I run this
g<-read.table("ip.txt")
plot(g,type="l")
Try:
plot(g$V1,type="l")
I have prove to attac
Hi all
Sorry in advance
I have this txt with data and I want to plot the data with a line between
dots.
The thing is that if I run this
g<-read.table("ip.txt")
plot(g,type="l")
I have prove to attach(g) but doesn´ t work.
I know is a begginer question and sure is of the type of data or the f
3 matches
Mail list logo