Boxplot Ausreißer
Verfasst: Mo Jul 01, 2019 8:28 pm
-
Deutschsprachiges Forum zur Statistikumgebung R
http://www.forum.r-statistik.de/
Code: Alles auswählen
x <- rlnorm(1000)
boxplot(x)
# save summaries to stats object
stats <- boxplot(x, plot = FALSE)
stats
# do not plot outliers
boxplot(x, outline = FALSE)
# or exclude outliers, than boxplot (note the change in median/iqr)
# range = 0 to extent whiskers from min + max
boxplot(x[x <= stats$stats[5, 1]], range = 0)
# or log-transform
boxplot(log10(x))