[R] Need help with plotting the graph
David Carlson
dcarlson at tamu.edu
Mon Oct 7 22:18:52 CEST 2013
First. You should update R to the latest version, 3.0.2.
Second. What commands have you tried and what error messages did
you receive?
Third. Use dput(df) and send the output to the mailing list. A
data frame usually consists of several vectors, not several
lists. It might be necessary to explain how you created or
obtained df.
-------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Prasad Joshi
Sent: Monday, October 7, 2013 5:03 AM
To: r-help at r-project.org
Subject: [R] Need help with plotting the graph
Hello All,
The version of R I am using is as follows
> version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 2
minor 14.1
year 2011
month 12
day 22
svn rev 57956
language R
version.string R version 2.14.1 (2011-12-22)
I just few days back started using R for basic statistical
analysis. I
want to plot the graph of following information
> df
disk vmfs vmdk IOPS BW
1 naa.5000a7203007ed8f 3 eager 16886.77 65.96393
2 naa.5000a7203007ed8f 3 lazy 44623.15 174.3092
3 naa.5000a7203007ed8f 5 eager 16767.53 65.49815
4 naa.5000a7203007ed8f 5 lazy 45891.55 179.2639
> str(df)
'data.frame': 4 obs. of 5 variables:
$ disk:List of 4
..$ : chr "naa.5000a7203007ed8f"
..$ : chr "naa.5000a7203007ed8f"
..$ : chr "naa.5000a7203007ed8f"
..$ : chr "naa.5000a7203007ed8f"
$ vmfs:List of 4
..$ : num 3
..$ : num 3
..$ : num 5
..$ : num 5
$ vmdk:List of 4
..$ : chr "eager"
..$ : chr "lazy"
..$ : chr "eager"
..$ : chr "lazy"
$ IOPS:List of 4
..$ : num 16887
..$ : num 44623
..$ : num 16768
..$ : num 45892
$ BW :List of 4
..$ : num 66
..$ : num 174
..$ : num 65.5
..$ : num 179
I would like Y axis to represent BW and X axis to represent
disk, vmfs and vmdk.
All the examples in books or online have single X axis. I could
not
find an example which does something similar to what I am
trying. Can
anyone please give me some pointers?
Thanks and Regards,
Prasad
______________________________________________
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.
More information about the R-help
mailing list