I assume that when you read in the data, you assigned it to an object; e.g.,
myData <- read.table("yourFile") you can then plot a histogram by: hist(myData$V1) you may need to reread "Introduction to R" that comes with the software. On Tue, Jun 30, 2009 at 6:34 AM, maram salem <marammagdysa...@yahoo.com>wrote: > Hi Group, > I've a vector of 1000 numeric values for which I want to draw a histogram. > I've read this vector into R with no variable name.I mean only the 1000 > values, which makes V1 the name of the variable by default?? Then I tried > > > hist(V1, breaks = "Sturges", > + freq = NULL, probability = !freq, > + include.lowest = TRUE, right = TRUE, > + density = NULL, angle = 45, col = NULL, border = NULL, > + main = paste("Histogram of" , V1name), > + V1lim = range(breaks), ylim = NULL, > + V1lab = V1name, ylab, > + axes = TRUE, plot = TRUE, labels = FALSE, > + nclass = NULL) > > It gave me this error: > Error in hist(V1, breaks = "Sturges", freq = NULL, probability = !freq, : > object "V1" not found > > I don't get what's wrong,( An R beginner)?? > > > > > [[alternative HTML version deleted]] > > > ______________________________________________ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]] ______________________________________________ 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.