CC BY-NC-ND 3.0
Statistique descriptive : résumer l’information avec caractéristiques essentielles.
Comment ? Avec des indicateurs et des représentations graphiques.
## year month day hour minute second temperature gas humidity pressure
## 1 2018 10 22 17 58 1 10.75793 11811196 80.34636 1040.177
## 2 2018 10 22 17 59 26 10.76887 11682953 79.98910 1040.153
## 3 2018 10 22 18 0 29 10.80402 11569892 79.74389 1040.090
## 4 2018 10 22 18 1 31 10.78391 11582347 79.84094 1040.164
## 5 2018 10 22 18 2 33 10.73586 11582347 80.57278 1040.286
## 6 2018 10 22 18 3 36 10.66633 11582347 81.02920 1040.477
## lightVisible lightIR lightUV
## 1 264 318 4
## 2 266 313 5
## 3 263 306 3
## 4 267 307 4
## 5 266 308 5
## 6 266 307 5
## [1] 465540
## [1] 13
## [1] 11.12679
## [1] 9.93
## [1] -5.986406
## [1] 49.01672
# sqrt(variance) = écart-type
n <- length(bdd$temperature)
xi <- bdd$temperature
sn <- 1/(n-1) * sum(xi^2 - mean(xi)^2)
print(sn)
## [1] 73.94156
## [1] 73.94156
## [1] 8.598928
## [1] 8.598928
## 0% 25% 50% 75% 100%
## -5.986406 4.618672 9.930000 16.842305 49.016719
## 50%
## 9.93
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## -5.986 4.619 9.930 11.127 16.842 49.017
## temperature humidity pressure
## Min. :-5.986 Min. : 15.27 Min. : 980.6
## 1st Qu.: 4.619 1st Qu.: 54.70 1st Qu.:1011.2
## Median : 9.930 Median : 74.09 Median :1025.5
## Mean :11.127 Mean : 69.41 Mean :1027.4
## 3rd Qu.:16.842 3rd Qu.: 85.23 3rd Qu.:1041.5
## Max. :49.017 Max. :100.00 Max. :1085.6
## temperature humidity pressure
## Min. :-5.986 Min. : 15.27 Min. : 980.6
## 1st Qu.: 4.619 1st Qu.: 54.70 1st Qu.:1011.2
## Median : 9.930 Median : 74.09 Median :1025.5
## Mean :11.127 Mean : 69.41 Mean :1027.4
## 3rd Qu.:16.842 3rd Qu.: 85.23 3rd Qu.:1041.5
## Max. :49.017 Max. :100.00 Max. :1085.6
moyennes par mois ?
bdd$date <- as.POSIXct(
paste(
bdd$year, bdd$month, bdd$day, bdd$hour, bdd$minute, bdd$second),
format = "%Y %m %d %H %M %S"
)
head(bdd$date)
## [1] "2018-10-22 17:58:01 CEST" "2018-10-22 17:59:26 CEST"
## [3] "2018-10-22 18:00:29 CEST" "2018-10-22 18:01:31 CEST"
## [5] "2018-10-22 18:02:33 CEST" "2018-10-22 18:03:36 CEST"
plot(
x = as.Date(names(tempDay), format = "%Y/%m/%d"),
y = tempDay, xlab = "Time",ylab = "Temperature (°C)",
type = "l", lwd = 2)
points(
x = as.Date(names(temp3q), format = "%Y/%m/%d"),
y = temp3q, xlab = "Time",ylab = "Temperature (°C)",
type = "l", lwd = 2, col = "red")
points(
x = as.Date(names(temp1q), format = "%Y/%m/%d"),
y = temp1q, xlab = "Time",ylab = "Temperature (°C)",
type = "l", lwd = 2, col = "blue")
tempMonthMean <- tapply(bdd$temp,
INDEX = format(bdd$date, format = "%Y-%m"), FUN = mean)
myCol <- colorRampPalette(c("blue", "red"))(101)
tempMeanDayPos <- round(
(tempMonthMean - min(tempMonthMean)) /
(max(tempMonthMean) - min(tempMonthMean))*100) + 1
par(mar = c(6, 2, 1, 1))
boxplot(bdd$temp ~ format(bdd$date, format = "%Y-%m"), las = 3,
col = myCol[tempMeanDayPos],
xlab = "", ylab = "")
Nombre de jours avec une temperature moyenne supérieure à 30°C ? Nombre de jours avec une temperature moyenne inférieure à 5°C ?
## [1] 2
## [1] 74
La température est une variable continue :
## [1] 10.75793 10.76887 10.80402 10.78391 10.73586 10.66633
## [1] -10 -8 -6 -4 -2 0 2 4 6 8 10 12 14 16 18 20 22
## [18] 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56
## [35] 58 60
## [1] (10,12] (10,12] (10,12] (10,12] (10,12] (10,12]
## 35 Levels: (-10,-8] (-8,-6] (-6,-4] (-4,-2] (-2,0] (0,2] (2,4] ... (58,60]
## bddCut
## (-10,-8] (-8,-6] (-6,-4] (-4,-2] (-2,0] (0,2] (2,4] (4,6]
## 0 0 3366 12700 21865 28247 36015 45741
## (6,8] (8,10] (10,12] (12,14] (14,16] (16,18] (18,20] (20,22]
## 41689 44379 36419 34764 30073 30975 23612 19355
## (22,24] (24,26] (26,28] (28,30] (30,32] (32,34] (34,36] (36,38]
## 17278 12372 9352 6044 4822 2256 1618 1292
## (38,40] (40,42] (42,44] (44,46] (46,48] (48,50] (50,52] (52,54]
## 699 322 110 73 71 31 0 0
## (54,56] (56,58] (58,60]
## 0 0 0
Fn(x) : % obs < x
## png
## 2
## png
## 2
File / Export as… / tif / LZW compression