ファセットで欠損を探索する
geom_miss_point() は ggplot のジオムなので、ファセットのような ggplot2 の機能と組み合わせて使えます。
つまり、ggplot2 に慣れた枠組みの中で、欠損をすばやく探索できます。
この演習はコースの一部です
Rでの欠損データの扱い方
演習の手順
- 風と気温の欠損を
geom_miss_point()で可視化して探索し、年ごとにファセットしてください。 - 湿度と気温の欠損を
geom_miss_point()で可視化して探索し、年ごとにファセットしてください。
実践的なインタラクティブ演習
このサンプルコードを完成させて、この演習に挑戦してみましょう。
# Explore the missingness in wind and air temperature, and display the
# missingness using `geom_miss_point()`. Facet by year to explore this further.
ggplot(___,
aes(x = ___,
y = ___)) +
___() +
facet_wrap(~year)
# Explore the missingness in humidity and air temperature, and display the
# missingness using `geom_miss_point()` Facet by year to explore this further.
ggplot(___,
aes(___,
___)) +
____() +
facet_wrap(~year)