# A tibble: 1 × 2
`Median Bill Length` `Median Bill Depth`
<dbl> <dbl>
1 44.5 17.3
Fundamentals of Data Science for NHS using R
Add a line passing through the median of each variable.
# A tibble: 1 × 2
`Median Bill Length` `Median Bill Depth`
<dbl> <dbl>
1 44.5 17.3
A not very good result can be obtained using geom_point
.
There is no a default function in ggplot. How can we make it?
Use Tuckey’s fences with \(k = 0.5\) as outlier criteria. Hence \(x\) is an outlier if it is not in the interval \([Q_1 - 0.5\cdot IQR, Q_3 + 0.5\cdot IQR]\).
Using \(k = 0.7\) to highlight extreme values. You need to install patchwork
.