#Chapitre 3
#page 95
library(BioStatR)
Mesures
##     masse taille           espece
## 1    28.6   19.1  glycine blanche
## 2    20.6   14.8  glycine blanche
## 3    29.2   19.7  glycine blanche
## 4    32.0   21.1  glycine blanche
## 5    24.5   19.4  glycine blanche
## 6    29.0   19.5  glycine blanche
## 7    28.9   18.9  glycine blanche
## 8    18.2   14.6  glycine blanche
## 9     7.9   10.2  glycine blanche
## 10   15.5   14.6  glycine blanche
## 11   22.6   16.4  glycine blanche
## 12   35.5   21.1  glycine blanche
## 13   32.5   20.7  glycine blanche
## 14   28.7   18.7  glycine blanche
## 15   26.0   17.6  glycine blanche
## 16   13.5   13.2  glycine blanche
## 17   16.4   14.0  glycine blanche
## 18   12.5   12.0  glycine blanche
## 19   26.2   18.3  glycine blanche
## 20   22.6   17.8  glycine blanche
## 21    9.7   10.7  glycine blanche
## 22   21.8   16.5  glycine blanche
## 23   17.2   14.5  glycine blanche
## 24   25.2   17.5  glycine blanche
## 25   12.0   12.2  glycine blanche
## 26    6.3    8.6  glycine blanche
## 27    7.0    9.1  glycine blanche
## 28   20.4   17.0  glycine blanche
## 29   18.0   15.3  glycine blanche
## 30   21.1   15.8  glycine blanche
## 31   18.2   15.9  glycine blanche
## 32   15.2   12.2  glycine blanche
## 33   19.8   16.1  glycine blanche
## 34   21.4   16.0  glycine blanche
## 35   15.0   13.8  glycine blanche
## 36   16.4   14.4  glycine blanche
## 37   17.3   14.2  glycine blanche
## 38   16.4   15.7  glycine blanche
## 39   13.5   12.6  glycine blanche
## 40   13.6   12.0  glycine blanche
## 41   14.6   12.8  glycine blanche
## 42   16.9   15.3  glycine blanche
## 43   11.7   12.4  glycine blanche
## 44   14.0   14.5  glycine blanche
## 45   14.6   12.3  glycine blanche
## 46   10.3   11.8  glycine blanche
## 47   11.3   12.6  glycine blanche
## 48   10.7   11.3  glycine blanche
## 49   10.9   12.5  glycine blanche
## 50   20.0   16.1  glycine blanche
## 51   21.5   16.2  glycine blanche
## 52   12.0   11.3  glycine blanche
## 53    6.1    8.6  glycine blanche
## 54    5.4    8.2  glycine blanche
## 55   40.0   24.5 glycine violette
## 56   49.2   27.0 glycine violette
## 57   46.0   25.8 glycine violette
## 58   26.4   18.7 glycine violette
## 59   42.2   25.2 glycine violette
## 60   48.4   25.8 glycine violette
## 61   23.9   19.2 glycine violette
## 62   31.7   21.4 glycine violette
## 63   16.8   12.0 glycine violette
## 64   21.6   14.0 glycine violette
## 65   24.1   18.5 glycine violette
## 66   13.5   12.8 glycine violette
## 67   22.4   13.8 glycine violette
## 68   26.1   17.3 glycine violette
## 69   12.9   12.4 glycine violette
## 70   26.6   20.0 glycine violette
## 71   29.6   20.5 glycine violette
## 72   22.4   18.2 glycine violette
## 73   17.3   13.3 glycine violette
## 74   16.6   13.5 glycine violette
## 75   12.8   12.0 glycine violette
## 76   19.1   14.5 glycine violette
## 77   12.4   11.6 glycine violette
## 78    8.8    9.2 glycine violette
## 79   13.2   15.1 glycine violette
## 80   15.9   12.2 glycine violette
## 81   13.3   11.2 glycine violette
## 82    6.3    8.4 glycine violette
## 83   12.9   11.5 glycine violette
## 84    6.2    7.8 glycine violette
## 85    8.6    9.8 glycine violette
## 86   14.4   11.6 glycine violette
## 87   11.5    9.8 glycine violette
## 88   11.5   11.0 glycine violette
## 89   12.8   10.6 glycine violette
## 90   11.7   11.1 glycine violette
## 91   15.7   14.0 glycine violette
## 92   12.0   11.4 glycine violette
## 93   13.4   11.1 glycine violette
## 94   11.3   10.7 glycine violette
## 95    6.6    7.9 glycine violette
## 96   17.8   13.7 glycine violette
## 97    9.6   10.0 glycine violette
## 98   14.3   12.8 glycine violette
## 99   14.0   12.2 glycine violette
## 100  11.3   11.4 glycine violette
## 101  10.2   10.2 glycine violette
## 102  12.2   10.8 glycine violette
## 103  15.9   13.0 glycine violette
## 104  11.7   10.3 glycine violette
## 105  12.4   11.0 glycine violette
## 106  11.5   11.4 glycine violette
## 107  10.6   10.5 glycine violette
## 108   9.4    9.2 glycine violette
## 109   9.2    9.9 glycine violette
## 110   6.1    8.4 glycine violette
## 111  10.9   12.8          bignone
## 112   6.6   10.5          bignone
## 113  22.5   18.0          bignone
## 114  33.7   21.5          bignone
## 115  20.6   17.8          bignone
## 116  16.6   16.3          bignone
## 117  14.2   17.4          bignone
## 118  13.8   15.7          bignone
## 119  14.0   17.3          bignone
## 120   8.7   13.4          bignone
## 121  14.2   13.9          bignone
## 122  10.6   14.6          bignone
## 123  10.9   14.2          bignone
## 124   3.3    8.9          bignone
## 125   9.7   13.0          bignone
## 126   9.3   12.2          bignone
## 127  17.2   16.5          bignone
## 128  10.1   14.7          bignone
## 129   9.0   13.4          bignone
## 130   7.1   11.6          bignone
## 131   7.1   12.9          bignone
## 132   1.5    6.5          bignone
## 133   4.1    9.5          bignone
## 134   8.0   11.8          bignone
## 135   7.4   13.6          bignone
## 136   7.2   12.9          bignone
## 137   6.9   11.6          bignone
## 138   2.9    9.4          bignone
## 139   2.4    9.5          bignone
## 140  10.7   14.0          bignone
## 141  13.8   13.5          bignone
## 142  10.9   12.1          bignone
## 143  10.3   11.6          bignone
## 144   8.8   13.4          bignone
## 145   9.0   10.9          bignone
## 146   8.2   12.2          bignone
## 147   9.6   13.4          bignone
## 148   9.0   12.5          bignone
## 149   5.3   10.5          bignone
## 150   1.5    7.0          bignone
## 151   6.7   13.2          bignone
## 152   2.9    9.3          bignone
## 153   2.9    7.9          bignone
## 154   3.5   10.3          bignone
## 155   3.4    7.5          bignone
## 156   4.9    8.5          bignone
## 157   4.7   10.1          bignone
## 158   4.7    8.3          bignone
## 159   5.2   10.8          bignone
## 160   2.1    8.3          bignone
## 161   2.2    7.1          bignone
## 162   1.4    6.4          bignone
## 163   2.7    6.5          bignone
## 164   1.0    4.8          bignone
## 165   2.5    7.4          bignone
## 166   5.5    9.3          bignone
## 167   2.7    8.6          bignone
## 168   6.7    9.9          bignone
## 169   7.3   13.9          bignone
## 170   2.9    8.7          bignone
## 171   3.8    9.3          bignone
## 172   7.6   13.7          bignone
## 173   3.6    8.3          bignone
## 174   3.0    8.1          bignone
## 175   5.8   11.2          bignone
## 176   5.3   12.0          bignone
## 177   3.2   11.3          bignone
## 178   4.4    6.7          bignone
## 179   3.4   10.6          bignone
## 180   2.9    8.9          bignone
## 181   4.9   15.3     laurier rose
## 182   6.2   15.9     laurier rose
## 183   4.0   15.0     laurier rose
## 184   3.3   11.0     laurier rose
## 185   4.8   15.1     laurier rose
## 186   5.6   15.6     laurier rose
## 187   4.5   15.3     laurier rose
## 188   6.3   18.4     laurier rose
## 189   4.2   14.0     laurier rose
## 190   3.9   12.6     laurier rose
## 191   5.8   16.8     laurier rose
## 192   4.7   13.6     laurier rose
## 193   6.0   15.1     laurier rose
## 194   6.5   16.7     laurier rose
## 195   5.0   15.3     laurier rose
## 196   5.5   17.1     laurier rose
## 197   4.7   14.6     laurier rose
## 198   5.7   15.0     laurier rose
## 199   3.6   10.4     laurier rose
## 200   5.4   16.5     laurier rose
## 201   5.3   16.6     laurier rose
## 202   5.0   15.9     laurier rose
## 203   4.5   14.4     laurier rose
## 204   4.4   16.2     laurier rose
## 205   4.8   15.2     laurier rose
## 206   4.5   15.8     laurier rose
## 207   3.2   11.0     laurier rose
## 208   4.7   14.1     laurier rose
## 209   4.0   13.7     laurier rose
## 210   5.8   15.4     laurier rose
## 211   5.5   15.3     laurier rose
## 212   4.4   13.5     laurier rose
## 213   3.5   12.0     laurier rose
## 214   4.4   14.7     laurier rose
## 215   4.3   15.5     laurier rose
## 216   4.1   12.9     laurier rose
## 217   5.3   15.0     laurier rose
## 218   4.7   15.8     laurier rose
## 219   5.3   13.8     laurier rose
## 220   4.7   12.8     laurier rose
## 221   4.9   16.0     laurier rose
## 222   4.1   12.0     laurier rose
## 223   4.6   14.3     laurier rose
## 224   4.8   14.5     laurier rose
## 225   3.4   11.4     laurier rose
## 226   3.4   13.3     laurier rose
## 227   5.8   15.5     laurier rose
## 228   4.8   15.1     laurier rose
## 229   3.9   12.8     laurier rose
## 230   3.4   12.7     laurier rose
## 231   4.5   15.7     laurier rose
## 232   3.3   13.2     laurier rose
## 233   3.3   13.4     laurier rose
## 234   3.6   13.8     laurier rose
## 235   3.5   11.2     laurier rose
## 236   3.8   11.4     laurier rose
## 237   3.2   11.1     laurier rose
## 238   3.8   14.4     laurier rose
## 239   5.3   13.4     laurier rose
## 240   5.8   14.7     laurier rose
## 241   4.6   14.9     laurier rose
## 242   3.2   10.5     laurier rose
## 243   4.3   14.6     laurier rose
## 244   2.7   11.3     laurier rose
## 245   2.6    9.1     laurier rose
## 246   2.4    9.0     laurier rose
## 247   2.6    9.4     laurier rose
## 248   3.2   12.1     laurier rose
## 249   6.4   16.1     laurier rose
## 250   3.4   13.2     laurier rose
## 251   3.4   11.4     laurier rose
## 252   2.7   11.5     laurier rose
head(Mesures)
##   masse taille          espece
## 1  28.6   19.1 glycine blanche
## 2  20.6   14.8 glycine blanche
## 3  29.2   19.7 glycine blanche
## 4  32.0   21.1 glycine blanche
## 5  24.5   19.4 glycine blanche
## 6  29.0   19.5 glycine blanche
#page 96
head(Mesures,10)
##    masse taille          espece
## 1   28.6   19.1 glycine blanche
## 2   20.6   14.8 glycine blanche
## 3   29.2   19.7 glycine blanche
## 4   32.0   21.1 glycine blanche
## 5   24.5   19.4 glycine blanche
## 6   29.0   19.5 glycine blanche
## 7   28.9   18.9 glycine blanche
## 8   18.2   14.6 glycine blanche
## 9    7.9   10.2 glycine blanche
## 10  15.5   14.6 glycine blanche
tail(Mesures)
##     masse taille       espece
## 247   2.6    9.4 laurier rose
## 248   3.2   12.1 laurier rose
## 249   6.4   16.1 laurier rose
## 250   3.4   13.2 laurier rose
## 251   3.4   11.4 laurier rose
## 252   2.7   11.5 laurier rose
#page 97
str(Mesures)
## 'data.frame':    252 obs. of  3 variables:
##  $ masse : num  28.6 20.6 29.2 32 24.5 29 28.9 18.2 7.9 15.5 ...
##  $ taille: num  19.1 14.8 19.7 21.1 19.4 19.5 18.9 14.6 10.2 14.6 ...
##  $ espece: Factor w/ 4 levels "bignone","glycine blanche",..: 2 2 2 2 2 2 2 2 2 2 ...
class(Mesures$espece)
## [1] "factor"
names(Mesures$espece)
## NULL
names(Mesures)
## [1] "masse"  "taille" "espece"
#page 98
levels(Mesures$espece)
## [1] "bignone"          "glycine blanche"  "glycine violette"
## [4] "laurier rose"
?factor
str(Mesures5)
## 'data.frame':    252 obs. of  5 variables:
##  $ masse    : num  28.6 20.6 29.2 32 24.5 29 28.9 18.2 7.9 15.5 ...
##  $ taille   : num  19.1 14.8 19.7 21.1 19.4 19.5 18.9 14.6 10.2 14.6 ...
##  $ graines  : int  4 3 5 7 4 4 4 2 1 2 ...
##  $ masse_sec: num  9.3 7.7 10.4 11.5 8.4 10.3 10.1 6.3 2.7 5.5 ...
##  $ espece   : Factor w/ 4 levels "bignone","glycine blanche",..: 2 2 2 2 2 2 2 2 2 2 ...
Mesures5
##     masse taille graines masse_sec           espece
## 1    28.6   19.1       4       9.3  glycine blanche
## 2    20.6   14.8       3       7.7  glycine blanche
## 3    29.2   19.7       5      10.4  glycine blanche
## 4    32.0   21.1       7      11.5  glycine blanche
## 5    24.5   19.4       4       8.4  glycine blanche
## 6    29.0   19.5       4      10.3  glycine blanche
## 7    28.9   18.9       4      10.1  glycine blanche
## 8    18.2   14.6       2       6.3  glycine blanche
## 9     7.9   10.2       1       2.7  glycine blanche
## 10   15.5   14.6       2       5.5  glycine blanche
## 11   22.6   16.4       2       8.3  glycine blanche
## 12   35.5   21.1       6      13.1  glycine blanche
## 13   32.5   20.7       5      11.4  glycine blanche
## 14   28.7   18.7       5      10.5  glycine blanche
## 15   26.0   17.6       3       9.5  glycine blanche
## 16   13.5   13.2       2       4.7  glycine blanche
## 17   16.4   14.0       2       6.0  glycine blanche
## 18   12.5   12.0       3       4.3  glycine blanche
## 19   26.2   18.3       5       9.1  glycine blanche
## 20   22.6   17.8       2       8.2  glycine blanche
## 21    9.7   10.7       1       3.3  glycine blanche
## 22   21.8   16.5       3       7.2  glycine blanche
## 23   17.2   14.5       3       5.9  glycine blanche
## 24   25.2   17.5       4       9.1  glycine blanche
## 25   12.0   12.2       2       4.2  glycine blanche
## 26    6.3    8.6       1       2.2  glycine blanche
## 27    7.0    9.1       1       2.5  glycine blanche
## 28   20.4   17.0       4       7.1  glycine blanche
## 29   18.0   15.3       3       6.3  glycine blanche
## 30   21.1   15.8       4       7.3  glycine blanche
## 31   18.2   15.9       2       5.8  glycine blanche
## 32   15.2   12.2       3       5.2  glycine blanche
## 33   19.8   16.1       4       6.6  glycine blanche
## 34   21.4   16.0       3       7.5  glycine blanche
## 35   15.0   13.8       1       5.1  glycine blanche
## 36   16.4   14.4       2       5.3  glycine blanche
## 37   17.3   14.2       5       5.9  glycine blanche
## 38   16.4   15.7       2       6.1  glycine blanche
## 39   13.5   12.6       2       4.8  glycine blanche
## 40   13.6   12.0       3       4.5  glycine blanche
## 41   14.6   12.8       4       4.6  glycine blanche
## 42   16.9   15.3       3       5.9  glycine blanche
## 43   11.7   12.4       2       4.1  glycine blanche
## 44   14.0   14.5       2       5.0  glycine blanche
## 45   14.6   12.3       2       5.3  glycine blanche
## 46   10.3   11.8       2       3.8  glycine blanche
## 47   11.3   12.6       2       4.0  glycine blanche
## 48   10.7   11.3       2       3.9  glycine blanche
## 49   10.9   12.5       3       3.6  glycine blanche
## 50   20.0   16.1       4       7.2  glycine blanche
## 51   21.5   16.2       2       7.7  glycine blanche
## 52   12.0   11.3       2       4.3  glycine blanche
## 53    6.1    8.6       1       2.2  glycine blanche
## 54    5.4    8.2       1       2.1  glycine blanche
## 55   40.0   24.5       7      17.4 glycine violette
## 56   49.2   27.0       7      16.2 glycine violette
## 57   46.0   25.8       5      13.9 glycine violette
## 58   26.4   18.7       3       8.3 glycine violette
## 59   42.2   25.2       5      15.5 glycine violette
## 60   48.4   25.8       4      16.2 glycine violette
## 61   23.9   19.2       4       8.0 glycine violette
## 62   31.7   21.4       5      10.9 glycine violette
## 63   16.8   12.0       4       5.3 glycine violette
## 64   21.6   14.0       5       7.2 glycine violette
## 65   24.1   18.5       3       8.1 glycine violette
## 66   13.5   12.8       3       4.5 glycine violette
## 67   22.4   13.8       3       7.5 glycine violette
## 68   26.1   17.3       6       8.8 glycine violette
## 69   12.9   12.4       3       4.6 glycine violette
## 70   26.6   20.0       5       8.9 glycine violette
## 71   29.6   20.5       3       9.7 glycine violette
## 72   22.4   18.2       3       7.0 glycine violette
## 73   17.3   13.3       3       5.8 glycine violette
## 74   16.6   13.5       4       5.6 glycine violette
## 75   12.8   12.0       2       4.5 glycine violette
## 76   19.1   14.5       3       6.7 glycine violette
## 77   12.4   11.6       2       4.3 glycine violette
## 78    8.8    9.2       2       3.3 glycine violette
## 79   13.2   15.1       3       4.1 glycine violette
## 80   15.9   12.2       3       5.3 glycine violette
## 81   13.3   11.2       2       5.0 glycine violette
## 82    6.3    8.4       1       2.3 glycine violette
## 83   12.9   11.5       2       4.5 glycine violette
## 84    6.2    7.8       1       2.2 glycine violette
## 85    8.6    9.8       2       3.0 glycine violette
## 86   14.4   11.6       2       5.1 glycine violette
## 87   11.5    9.8       2       4.0 glycine violette
## 88   11.5   11.0       2       3.9 glycine violette
## 89   12.8   10.6       2       5.0 glycine violette
## 90   11.7   11.1       2       4.2 glycine violette
## 91   15.7   14.0       3       6.1 glycine violette
## 92   12.0   11.4       2       4.3 glycine violette
## 93   13.4   11.1       2       4.2 glycine violette
## 94   11.3   10.7       2       3.7 glycine violette
## 95    6.6    7.9       1       2.5 glycine violette
## 96   17.8   13.7       4       6.3 glycine violette
## 97    9.6   10.0       2       3.2 glycine violette
## 98   14.3   12.8       3       5.3 glycine violette
## 99   14.0   12.2       2       5.2 glycine violette
## 100  11.3   11.4       3       4.2 glycine violette
## 101  10.2   10.2       3       3.8 glycine violette
## 102  12.2   10.8       3       4.7 glycine violette
## 103  15.9   13.0       4       5.5 glycine violette
## 104  11.7   10.3       2       4.5 glycine violette
## 105  12.4   11.0       2       4.1 glycine violette
## 106  11.5   11.4       2       4.5 glycine violette
## 107  10.6   10.5       2       4.0 glycine violette
## 108   9.4    9.2       2       3.3 glycine violette
## 109   9.2    9.9       2       3.5 glycine violette
## 110   6.1    8.4       1       2.5 glycine violette
## 111  10.9   12.8      NA       3.0          bignone
## 112   6.6   10.5      NA       1.1          bignone
## 113  22.5   18.0      NA       3.4          bignone
## 114  33.7   21.5      NA       6.6          bignone
## 115  20.6   17.8      NA       3.5          bignone
## 116  16.6   16.3      NA       4.3          bignone
## 117  14.2   17.4      NA       2.1          bignone
## 118  13.8   15.7      NA       2.1          bignone
## 119  14.0   17.3      NA       2.4          bignone
## 120   8.7   13.4      NA       2.2          bignone
## 121  14.2   13.9      NA       3.2          bignone
## 122  10.6   14.6      NA       1.7          bignone
## 123  10.9   14.2      NA       1.6          bignone
## 124   3.3    8.9      NA       0.5          bignone
## 125   9.7   13.0      NA       1.5          bignone
## 126   9.3   12.2      NA       1.9          bignone
## 127  17.2   16.5      NA       2.4          bignone
## 128  10.1   14.7      NA       2.3          bignone
## 129   9.0   13.4      NA       2.9          bignone
## 130   7.1   11.6      NA       1.5          bignone
## 131   7.1   12.9      NA       1.6          bignone
## 132   1.5    6.5      NA       0.2          bignone
## 133   4.1    9.5      NA       1.4          bignone
## 134   8.0   11.8      NA       2.2          bignone
## 135   7.4   13.6      NA       1.9          bignone
## 136   7.2   12.9      NA       1.1          bignone
## 137   6.9   11.6      NA       1.3          bignone
## 138   2.9    9.4      NA       0.8          bignone
## 139   2.4    9.5      NA       1.1          bignone
## 140  10.7   14.0      NA       2.3          bignone
## 141  13.8   13.5      NA       3.5          bignone
## 142  10.9   12.1      NA       1.7          bignone
## 143  10.3   11.6      NA       2.0          bignone
## 144   8.8   13.4      NA       1.7          bignone
## 145   9.0   10.9      NA       2.5          bignone
## 146   8.2   12.2      NA       1.7          bignone
## 147   9.6   13.4      NA       1.2          bignone
## 148   9.0   12.5      NA       1.7          bignone
## 149   5.3   10.5      NA       0.9          bignone
## 150   1.5    7.0      NA       0.7          bignone
## 151   6.7   13.2      NA       1.1          bignone
## 152   2.9    9.3      NA       0.6          bignone
## 153   2.9    7.9      NA       1.0          bignone
## 154   3.5   10.3      NA       1.2          bignone
## 155   3.4    7.5      NA       1.1          bignone
## 156   4.9    8.5      NA       1.5          bignone
## 157   4.7   10.1      NA       1.2          bignone
## 158   4.7    8.3      NA       1.3          bignone
## 159   5.2   10.8      NA       0.9          bignone
## 160   2.1    8.3      NA       0.5          bignone
## 161   2.2    7.1      NA       0.5          bignone
## 162   1.4    6.4      NA       0.6          bignone
## 163   2.7    6.5      NA       0.4          bignone
## 164   1.0    4.8      NA       0.4          bignone
## 165   2.5    7.4      NA       0.8          bignone
## 166   5.5    9.3      NA       0.9          bignone
## 167   2.7    8.6      NA       0.9          bignone
## 168   6.7    9.9      NA       2.0          bignone
## 169   7.3   13.9      NA       1.1          bignone
## 170   2.9    8.7      NA       1.3          bignone
## 171   3.8    9.3      NA       1.0          bignone
## 172   7.6   13.7      NA       2.6          bignone
## 173   3.6    8.3      NA       1.5          bignone
## 174   3.0    8.1      NA       1.0          bignone
## 175   5.8   11.2      NA       2.0          bignone
## 176   5.3   12.0      NA       1.1          bignone
## 177   3.2   11.3      NA       1.5          bignone
## 178   4.4    6.7      NA       1.5          bignone
## 179   3.4   10.6      NA       1.4          bignone
## 180   2.9    8.9      NA       0.9          bignone
## 181   4.9   15.3      NA       1.2     laurier rose
## 182   6.2   15.9      NA       1.1     laurier rose
## 183   4.0   15.0      NA       0.7     laurier rose
## 184   3.3   11.0      NA        NA     laurier rose
## 185   4.8   15.1      NA       0.8     laurier rose
## 186   5.6   15.6      NA       1.0     laurier rose
## 187   4.5   15.3      NA       0.7     laurier rose
## 188   6.3   18.4      NA       1.6     laurier rose
## 189   4.2   14.0      NA       0.8     laurier rose
## 190   3.9   12.6      NA       1.1     laurier rose
## 191   5.8   16.8      NA       0.9     laurier rose
## 192   4.7   13.6      NA       1.0     laurier rose
## 193   6.0   15.1      NA       1.5     laurier rose
## 194   6.5   16.7      NA       1.7     laurier rose
## 195   5.0   15.3      NA       1.0     laurier rose
## 196   5.5   17.1      NA       1.3     laurier rose
## 197   4.7   14.6      NA       1.0     laurier rose
## 198   5.7   15.0      NA       1.5     laurier rose
## 199   3.6   10.4      NA       1.1     laurier rose
## 200   5.4   16.5      NA       1.3     laurier rose
## 201   5.3   16.6      NA       1.1     laurier rose
## 202   5.0   15.9      NA       1.0     laurier rose
## 203   4.5   14.4      NA       1.0     laurier rose
## 204   4.4   16.2      NA       1.1     laurier rose
## 205   4.8   15.2      NA       0.8     laurier rose
## 206   4.5   15.8      NA       0.8     laurier rose
## 207   3.2   11.0      NA       0.6     laurier rose
## 208   4.7   14.1      NA       0.8     laurier rose
## 209   4.0   13.7      NA       0.8     laurier rose
## 210   5.8   15.4      NA       1.5     laurier rose
## 211   5.5   15.3      NA       1.3     laurier rose
## 212   4.4   13.5      NA       0.7     laurier rose
## 213   3.5   12.0      NA       1.1     laurier rose
## 214   4.4   14.7      NA       0.9     laurier rose
## 215   4.3   15.5      NA       1.2     laurier rose
## 216   4.1   12.9      NA       1.5     laurier rose
## 217   5.3   15.0      NA       1.6     laurier rose
## 218   4.7   15.8      NA       0.9     laurier rose
## 219   5.3   13.8      NA        NA     laurier rose
## 220   4.7   12.8      NA       1.2     laurier rose
## 221   4.9   16.0      NA       1.6     laurier rose
## 222   4.1   12.0      NA       0.6     laurier rose
## 223   4.6   14.3      NA       0.7     laurier rose
## 224   4.8   14.5      NA       0.9     laurier rose
## 225   3.4   11.4      NA       1.1     laurier rose
## 226   3.4   13.3      NA       0.6     laurier rose
## 227   5.8   15.5      NA       1.1     laurier rose
## 228   4.8   15.1      NA       1.0     laurier rose
## 229   3.9   12.8      NA       0.8     laurier rose
## 230   3.4   12.7      NA       0.8     laurier rose
## 231   4.5   15.7      NA       0.9     laurier rose
## 232   3.3   13.2      NA       0.5     laurier rose
## 233   3.3   13.4      NA       0.5     laurier rose
## 234   3.6   13.8      NA       0.6     laurier rose
## 235   3.5   11.2      NA       0.6     laurier rose
## 236   3.8   11.4      NA       1.1     laurier rose
## 237   3.2   11.1      NA       1.0     laurier rose
## 238   3.8   14.4      NA       0.7     laurier rose
## 239   5.3   13.4      NA       1.6     laurier rose
## 240   5.8   14.7      NA       1.7     laurier rose
## 241   4.6   14.9      NA       0.9     laurier rose
## 242   3.2   10.5      NA       1.1     laurier rose
## 243   4.3   14.6      NA       0.8     laurier rose
## 244   2.7   11.3      NA       0.5     laurier rose
## 245   2.6    9.1      NA       0.4     laurier rose
## 246   2.4    9.0      NA        NA     laurier rose
## 247   2.6    9.4      NA       0.9     laurier rose
## 248   3.2   12.1      NA       0.6     laurier rose
## 249   6.4   16.1      NA       1.8     laurier rose
## 250   3.4   13.2      NA       1.2     laurier rose
## 251   3.4   11.4      NA       1.2     laurier rose
## 252   2.7   11.5      NA       0.7     laurier rose
#page 101
table_graines<-table(Mesures5$graines)
table_graines
## 
##  1  2  3  4  5  6  7 
## 11 41 27 16 10  2  3
effcum_graines<-cumsum(table_graines)
effcum_graines
##   1   2   3   4   5   6   7 
##  11  52  79  95 105 107 110
#page 102
table(Mesures5$espece)
## 
##          bignone  glycine blanche glycine violette     laurier rose 
##               70               54               56               72
freq_table_graines<-table_graines/sum(table_graines)
options(digits=3)
freq_table_graines
## 
##      1      2      3      4      5      6      7 
## 0.1000 0.3727 0.2455 0.1455 0.0909 0.0182 0.0273
freq_table_graines<-prop.table(table(Mesures5$graines))
freq_table_graines
## 
##      1      2      3      4      5      6      7 
## 0.1000 0.3727 0.2455 0.1455 0.0909 0.0182 0.0273
#page 103
freqcum_table_graines<-cumsum(table_graines/sum(table_graines))
freqcum_table_graines
##     1     2     3     4     5     6     7 
## 0.100 0.473 0.718 0.864 0.955 0.973 1.000
freqcum_table_graines<-cumsum(prop.table((table(Mesures5$graines))))
freqcum_table_graines
##     1     2     3     4     5     6     7 
## 0.100 0.473 0.718 0.864 0.955 0.973 1.000
#page 104
?hist

#page 105
minmax<-c(min(Mesures$masse),max(Mesures$masse))
minmax
## [1]  1.0 49.2
histo<-hist(Mesures$masse)

classes<-histo$breaks
classes
##  [1]  0  5 10 15 20 25 30 35 40 45 50
#page 106
effectifs<-histo$counts
effectifs
##  [1] 82 58 51 23 16 12  4  2  1  3
effectifs<-histo$counts
cumsum(effectifs)
##  [1]  82 140 191 214 230 242 246 248 249 252
frequences<-effectifs/sum(effectifs)
print(frequences,digits=3)
##  [1] 0.32540 0.23016 0.20238 0.09127 0.06349 0.04762 0.01587 0.00794
##  [9] 0.00397 0.01190
sum(frequences)
## [1] 1
#page 107
print(cumsum(frequences),digits=3)
##  [1] 0.325 0.556 0.758 0.849 0.913 0.960 0.976 0.984 0.988 1.000
table(Mesures$espece)
## 
##          bignone  glycine blanche glycine violette     laurier rose 
##               70               54               56               72
plot(taille~masse,data=Mesures)

#ggplot est une bibliothèque graphique à connaître
if(!("ggplot2" %in%
     rownames(installed.packages()))){install.packages("ggplot2")}
library(ggplot2)
#ggplot(Mesures, aes(x = masse)) + geom_histogram()
#Pas le même calcul de la largeur des classes par défaut. Dans ggplot2, la
#largeur des classes (binwidth) est égale à l'étendue divisée par 30.
ggplot(Mesures,aes(x=masse,y=taille))+geom_point()