Descriptive statistics

Descriptive statistics

Descriptive statistics

Central tendencies

Central tendencies

Skewness

Kurtosis

Descriptive statistics is not enough!

Datasaurus!

Datasaurus!

Datasaurus!

Data visualisation in R

ggplot2

Grammar of Graphics

Hadley Wickham

It was not so easy

ggplot2 fundamentals

Data layers consist of:

  • data
  • aesthetic mapping: aes()
  • a statistical transformation: stat
  • a geometric object: geom
  • a position adjustment: position

“Aesthetics, in the original Greek sense, offers principles for relating sensory attributes (color, shape, sound, etc.) to abstractions.”

ggplot2 fundamentals

In addition to layers you may specify:

  • scale for each aesthetic mapping: scale
  • a coordinate system: coord
  • the faceting specification: facet
  • theme

plotly

plotly

  • Dynamic visualization
  • d3.js is used

Other html-widgets

Something about good graphics

Avoid meaningless decorations

Avoid many colours and info

Data-Ink ratio

RMarkdown

RMarkdown

Thank you!