[R] Creating a histogram properly
Joshua Wiley
jwiley.psych at gmail.com
Mon Oct 24 19:34:47 CEST 2011
What about?
hist(Data$V1)
hist(Data$V2)
Cheers,
Josh
On Mon, Oct 24, 2011 at 9:38 AM, Joe Carl <joseph.w.carl.jr at gmail.com> wrote:
>
> Hello all,
>
> I'm trying to make a histogram of the data contained in my dataframe.
> The summary of the data gives me exactly what I want
>
> summary (Data)
> V1 V2
> first001: 3 last001: 9
> first002: 3 last002: 7
> first003: 2 last003: 6
> (Other) :52 (Other): 27
>
> But how do I capture the names and values in vectors so I can plot them?
>
> ______________________________________________
> 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.
--
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/
More information about the R-help
mailing list