[R] how to plot a series of data in a dataframe?
jim holtman
jholtman at gmail.com
Thu Sep 1 18:29:31 CEST 2011
try this:
> x <- read.table('clipboard', header = TRUE)
> x
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13
1 1001 3 24 12 24.7 44.4 70.1 49.3 33.7 3.0 6.8 2.7 NA
2 1001 3 25 0 70.1 49.3 33.7 138.2 152.5 NA 4.2 6.9 17.5
3 1001 3 25 12 33.7 187.7 286.5 386.7 NA 16.2 46.0 48.8 43.1
4 1001 3 26 0 88.6 129.4 NA NA NA 55.5 26.5 NA NA
5 1001 3 24 12 24.7 24.1 44.3 109.1 96.3 3.0 6.8 9.3 17.2
> boxplot(x[, 5:13])
On Thu, Sep 1, 2011 at 12:10 PM, Jie TANG <totangjie at gmail.com> wrote:
> hi
>
> i have a dataframe with the name "obsdata"
> V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13
> 1 1001 3 24 12 24.7 44.4 70.1 49.3 33.7 3.0 6.8 2.7 NA
> 2 1001 3 25 0 70.1 49.3 33.7 138.2 152.5 NA 4.2 6.9 17.5
> 3 1001 3 25 12 33.7 187.7 286.5 386.7 NA 16.2 46.0 48.8 43.1
> 4 1001 3 26 0 88.6 129.4 NA NA NA 55.5 26.5 NA NA
> 5 1001 3 24 12 24.7 24.1 44.3 109.1 96.3 3.0 6.8 9.3 17.2
>
> not i want to boxplot the data from V5 to V11 ,what can i do ?
>
> it seems that boxplot(obsdata$V5) can only plot one group of data ?
>
> --
> TANG Jie
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
--
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
More information about the R-help
mailing list