[R] Simple Histogram

JS Huang js.huang at protective.com
Fri Feb 20 21:44:58 CET 2015


Hi,

  Your data may look like the following and named speed.txt in working
directory.  Then the cod follows the data.  The graph is attached as
speed.pdf.

Speed
50
52
55
57
58
59
60
61
62
63
64
65
65
65
67
68
68
68
68
69
69
70
71
72
72
72
73
73
73
73
75
76
77
78
79



> speed <- read.table("speed.txt",header=TRUE)
> speed
   Speed
1     50
2     52
3     55
4     57
5     58
6     59
7     60
8     61
9     62
10    63
11    64
12    65
13    65
14    65
15    67
16    68
17    68
18    68
19    68
20    69
21    69
22    70
23    71
24    72
25    72
26    72
27    73
28    73
29    73
30    73
31    75
32    76
33    77
34    78
35    79
> hist(speed$Speed)

Speed.pdf <http://r.789695.n4.nabble.com/file/n4703616/Speed.pdf>  



--
View this message in context: http://r.789695.n4.nabble.com/Simple-Histogram-tp4703615p4703616.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list