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")
--Chris Ryan
SUNY Upstate Medical University
Binghamton, NY
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")
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 file
but I can´t find where is the solution. It appears:
Error in plot.default(xlim, ylim, type = "n", ann = FALSE, axes = FALSE, :
"type" in associated with multiple argumetns specified
Can anyone give me a clue...I will send a Parma ham ¡¡¡Many thaks¡¡¡
I promise not to ask again but I would said I was sure that that sentences
worked.
______________________________________________
R-help@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.
______________________________________________
R-help@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.