scieee Science in your language
[en] (orig)

Data Analysis & Visualisation According to FAIR Principles

Author: Scherer, Cédric
Publisher: Zenodo
DOI: 10.5281/zenodo.17303036
Source: https://zenodo.org/records/17303036/files/nfdi-dataviz-2025.pdf
Da a Analysis & Visualisa ion
Acco ding o FAIR P inciples
NFDI4Biodi e si y & HeFDI & iDi Seasona
l
Schoo
l
2
0
25
Oc obe 9, 2
0
25
D Céd ic Sche e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Welcome!
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Hi, I am Céd ic.
I am an independen specia
l
is o
in og aphics and da a isua
l
iza ions
.
I c a cha s and maps, de e
l
op wo k
l
ows o
e icien da a communica ion, and each da a
isua
l
iza ion and dashboa d design.
he
ll
o@ced icsche e .com
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
ced icsche e .com
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
ced icsche e .com/2
0
19/
0
8/
0
5/a-ggp
l
o 2- u o ia
l
- o -beau i u
l
-p
l
o ing-in-
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
ced icsche e .com
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
… make bo h
ca
l
cu
l
a ions and g aphs
.
Bo h so s o ou pu shou
l
d be s udied;
each wi
ll
con ibu e o unde s anding
.
F. J. Anscombe (1973)
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Anscombe’s Qua e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Anscombe’s Qua e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Anscombe’s Qua e
Sou ce:
Ma ejka & Fi zmau ice (2
0
17)
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize You Da a!
When Dmi y Kobak and Se gey
Shpi
l
kin […] ana
l
ysed he
esu
l
s, hey ound ha
an
unusua
ll
y high numbe o
u nou and o e-sha e
esu
l
s we e mu
l
ip
l
es o i e
(eg, 5
0
%, 55%, 6
0
%), a e
ll
- a
l
e
sign o manipu
l
a ion
.
by The Economis
<Russian e
l
ec ions once again had a suspicious
l
y nea esu
l
=
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize You Da a!
When Dmi y Kobak and Se gey
Shpi
l
kin […] ana
l
ysed he
esu
l
s, hey ound ha
an
unusua
ll
y high numbe o
u nou and o e-sha e
esu
l
s we e mu
l
ip
l
es o i e
(eg, 5
0
%, 55%, 6
0
%), a e
ll
- a
l
e
sign o manipu
l
a ion
.
by The Economis
<Russian e
l
ec ions once again had a suspicious
l
y nea esu
l
=
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Wha Makes a Good Da a Visualiza ion?
→ In eg i y (in o ma ion)
→ S o y (in e es ingness)
→ Goal (use ulness)
→ Visual Fo m (beau y)
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
The Da a Science Wo k昀氀ow
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
FAIR P inciples
→
F
indabili y
→
A
ccessibili y
→
I
n e ope abili y
→
R
euse o digi al asse s
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Inspec he Da a
dply ::glimpse( ydb)
1
Rows: 52,323
Columns: 5
$ ...1 <dbl> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,…
$ SpeciesName <ch > "Cas anea sa i a", "Fagus syl a ica", "La ix decidua", "Pi…
$ T ai Name <ch > "Seed d y mass", "Seed d y mass", "Seed d y mass", "Seed d…
$ S dValue <dbl> 1433.000000, 158.000000, 6.244000, 2.940000, 6.190000, 190…
$ Uni Name <ch > "mg", "mg", "mg", "mg", "mg", "mg", "mg", "mg", "mg", "g/c…
ydb <- jani o ::clean_names( ydb)
1
dply ::glimpse( ydb)
1
Rows: 52,323
Columns: 5
$ x1 <dbl> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17…
$ species_name <ch > "Cas anea sa i a", "Fagus syl a ica", "La ix decidua", "P…
$ ai _name <ch > "Seed d y mass", "Seed d y mass", "Seed d y mass", "Seed …
$ s d_ alue <dbl> 1433.000000, 158.000000, 6.244000, 2.940000, 6.190000, 19…
$ uni _name <ch > "mg", "mg", "mg", "mg", "mg", "mg", "mg", "mg", "mg", "g/…
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Inspec he Da a
unique( ydb$uni _name)
1
[1] "mg" "g/cm3" "mg/g" "g/g" "pe mill" "m"
[7] "mm2" "numbe " "mm2 mg-1" "g m-2" "mm" "mm-2"
[13] "g"
leng h(unique( ydb$species_name))
1
[1] 41
median( ydb$s d_ alue)
1
[1] NA
median( ydb$s d_ alue, na. m = TRUE)
1
[1] 4.18
quan ile( ydb$s d_ alue, na. m = TRUE)
1
0% 25% 50% 75% 100%
-9.670 0.621 4.180 15.750 138600.000
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Inspec he Da a
summa y( ydb)
1
x1 species_name ai _name s d_ alue
Min. : 1 Leng h:52323 Leng h:52323 Min. : -9.670
1s Qu.:13082 Class :cha ac e Class :cha ac e 1s Qu.: 0.621
Median :26162 Mode :cha ac e Mode :cha ac e Median : 4.180
Mean :26162 Mean : 88.316
3 d Qu.:39242 3 d Qu.: 15.750
Max. :52323 Max. :138600.000
NA's :10
uni _name
Leng h:52323
Class :cha ac e
Mode :cha ac e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Inspec he Da a
dply ::coun ( ydb)
1
# A ibble: 1 × 1
n
<in >
1 52323
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Inspec he Da a
dply ::coun ( ydb, species_name)
1
# A ibble: 41 × 2
species_name n
<ch > <in >
1 Abies alba 795
2 Abies concolo 311
3 Abies g andis 154
4 Abies ko eana 10
5 Abies no dmanniana 32
6 Abies p oce a 45
7 Cas anea sa i a 701
8 Ced us a lan ica 126
9 Fagus syl a ica 7166
10 La ix decidua 653
# ℹ 31 mo e ows
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Inspec he Da a
dply ::coun ( ydb, ai _name)
1
# A ibble: 17 × 2
ai _name n
<ch > <in >
1 Dispe sal uni leng h 96
2 Lea a ea (in case o compound lea es: lea le , unde ined i pe iole i… 190
3 Lea a ea pe lea d y mass (speci ic lea a ea, SLA o 1/LMA): unde i… 6742
4 Lea ca bon (C) con en pe lea d y mass 3999
5 Lea d y mass pe lea esh mass (lea d y ma e con en , LDMC) 4447
6 Lea esh mass 2442
7 Lea ni ogen (N) con en pe lea a ea 2579
8 Lea ni ogen (N) con en pe lea d y mass 9771
9 Lea ni ogen (N) iso ope signa u e (del a 15N) 200
10 Lea ni ogen/phospho us (N/P) a io 2612
11 Lea phospho us (P) con en pe lea d y mass 4923
12 Plan heigh ege a i e 10201
13 Seed d y mass 700
14 Seed leng h 112
15 Seed numbe pe ep oduc on uni 67
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Inspec he Da a
dply ::coun ( ydb, species_name, ai _name)
1
# A ibble: 405 × 3
species_name ai _name n
<ch > <ch > <in >
1 Abies alba Dispe sal uni leng h 6
2 Abies alba Lea a ea (in case o compound lea es: lea le , unde ined… 2
3 Abies alba Lea a ea pe lea d y mass (speci ic lea a ea, SLA o 1… 128
4 Abies alba Lea ca bon (C) con en pe lea d y mass 43
5 Abies alba Lea d y mass pe lea esh mass (lea d y ma e con en… 98
6 Abies alba Lea esh mass 144
7 Abies alba Lea ni ogen (N) con en pe lea a ea 36
8 Abies alba Lea ni ogen (N) con en pe lea d y mass 91
9 Abies alba Lea ni ogen/phospho us (N/P) a io 35
10 Abies alba Lea phospho us (P) con en pe lea d y mass 50
# ℹ 395 mo e ows
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Da a W angling
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
The Main Ve bs o {dply }
Ve b (Func ion) Explana ion
il e () Pick ows wi h ma ching c i e ia
selec () Pick columns wi h ma ching c i e ia
a ange() Reo de ows
mu a e() C ea e new a iables
summa ize() o summa ise() Sum up a iables
g oup_by() C ea e subse s
lib a y(dply )
1
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
W angle he Da a
ydb |>
1
il e ( ai _name == "Lea ni ogen (N) con en pe lea a ea") |>
2
selec (species_name, s d_ alue) |>
3
a ange(-s d_ alue)
4
# A ibble: 2,579 × 2
species_name s d_ alue
<ch > <dbl>
1 Pinus syl es is 8.47
2 Pinus syl es is 8.47
3 Pinus s obus 8.21
4 Pinus s obus 8.21
5 Pinus s obus 8.21
6 Picea abies 8.05
7 Picea abies 8.05
8 Picea abies 6.83
9 Picea abies 6.83
10 Pinus syl es is 6.72
# ℹ 2,569 mo e ows
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

W angle he Da a
ydb |>
1
il e ( ai _name == "Lea ni ogen (N) con en pe lea a ea") |>
2
selec (species_name, s d_ alue) |>
3
a ange(-s d_ alue) |>
4
mu a e(genus_name = s ing ::wo d(species_name, 1))
5
# A ibble: 2,579 × 3
species_name s d_ alue genus_name
<ch > <dbl> <ch >
1 Pinus syl es is 8.47 Pinus
2 Pinus syl es is 8.47 Pinus
3 Pinus s obus 8.21 Pinus
4 Pinus s obus 8.21 Pinus
5 Pinus s obus 8.21 Pinus
6 Picea abies 8.05 Picea
7 Picea abies 8.05 Picea
8 Picea abies 6.83 Picea
9 Picea abies 6.83 Picea
10 Pinus syl es is 6.72 Pinus
# ℹ 2,569 mo e ows
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
W angle he Da a
ydb |>
1
il e ( ai _name == "Lea ni ogen (N) con en pe lea a ea") |>
2
selec (species_name, s d_ alue) |>
3
a ange(-s d_ alue) |>
4
mu a e(genus_name = s ing ::wo d(species_name, 1)) |>
5
il e (genus_name == "La ix")
6
# A ibble: 23 × 3
species_name s d_ alue genus_name
<ch > <dbl> <ch >
1 La ix decidua 3.13 La ix
2 La ix decidua 2.7 La ix
3 La ix decidua 2.66 La ix
4 La ix decidua 2.46 La ix
5 La ix decidua 2.46 La ix
6 La ix decidua 2.46 La ix
7 La ix decidua 2.46 La ix
8 La ix decidua 2.46 La ix
9 La ix decidua 2.46 La ix
10 La ix decidua 2.46 La ix
# ℹ 13 mo e ows
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
W angle he Da a
ydb |>
1
il e ( ai _name == "Lea ni ogen (N) con en pe lea a ea") |>
2
selec (species_name, s d_ alue) |>
3
a ange(-s d_ alue) |>
4
il e (s ing ::s _de ec (species_name, "La ix"))
5
# A ibble: 23 × 2
species_name s d_ alue
<ch > <dbl>
1 La ix decidua 3.13
2 La ix decidua 2.7
3 La ix decidua 2.66
4 La ix decidua 2.46
5 La ix decidua 2.46
6 La ix decidua 2.46
7 La ix decidua 2.46
8 La ix decidua 2.46
9 La ix decidua 2.46
10 La ix decidua 2.46
# ℹ 13 mo e ows
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
W angle he Da a
ydb |>
1
il e ( ai _name == "Lea ni ogen (N) con en pe lea a ea") |>
2
g oup_by(species_name) |>
3
summa ize(s d_ alue_a g = mean(s d_ alue, na. m = TRUE)) |>
4
a ange(-s d_ alue_a g)
5
# A ibble: 27 × 2
species_name s d_ alue_a g
<ch > <dbl>
1 Abies concolo 3.87
2 Picea engelmannii 3.15
3 Picea abies 3.11
4 Pinus uncina a 3.10
5 Pinus syl es is 2.75
6 Pinus con o a 2.69
7 Pinus igida 2.46
8 Pinus nig a 2.27
9 Abies alba 2.25
10 Pinus s obus 2.23
# ℹ 17 mo e ows
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Da a Visualiza ion
wi h {ggplo 2}
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
{ggplo 2}
is a sys em o dec
l
a a i e
l
y c ea ing g aphics,
based on <The G amma o G aphics= (Wi
l
kinson, 2
00
5).
You p o ide he da a, e
ll
{ggplo 2}
how o ,
wha g aphica
l
p imi i es o use, and i akes ca e o he de ai
l
s.
map a iab
l
es o aes he ics
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Ad an ages o {ggplo 2}
code- i s app oach
→
ep oducib
l
e and anspa en wo k
l
ow
consis en unde
l
ying <g amma o g aphics=
e y
l
exib
l
e,
l
aye ed p
l
o speci ica ion
heme sys em o po
l
ishing p
l
o appea ance
l
o s o addi iona
l
unc iona
l
i y hanks o ex ensions
ac i e and he
l
p u
l
communi y
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
ggp
l
o 2 Examp
l
es ea u ed on ggp
l
o 2. idy e se.o g
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
The ggplo 2 Package
An
R package o isua
l
ize da a
c ea ed by Had
l
ey Wickham in 2
00
5
lib a y(ggplo 2)
1
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

ggplo 2::ggplo ()
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo (da a = ydb) +
1
aes(x = s d_ alue,
2
y = ai _name) +
3
geom_boxplo ()
4
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo (da a = ydb) +
1
aes(x = s d_ alue, y = ai _name) +
2
geom_boxplo ()
3
ggplo (da a = ydb) +
1
aes(
2
x = s d_ alue,
3
y = ai _name
4
) +
5
geom_boxplo ()
6
ggplo (da a = ydb,
1
mapping = aes(x = s d_ alue, y = ai _name)) +
2
geom_boxplo ()
3
ggplo ( ydb,
1
aes(s d_ alue, ai _name)) +
2
geom_boxplo ()
3
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo ( ydb) +
1
aes(
2
x = s d_ alue,
3
y = s ing ::s _ unc( ai _name, 30)
4
) +
5
geom_boxplo ()
6
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo ( ydb) +
1
aes(
2
x = s d_ alue,
3
y = s ing ::s _ unc( ai _name, 30)
4
) +
5
geom_ji e ()
6
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Visualize he Da a
ggplo ( ydb) +
1
aes(
2
x = s d_ alue,
3
y = s ing ::s _ unc( ai _name, 30)
4
) +
5
geom_ji e (
6
heigh = .3,
7
alpha = .05
8
)
9
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo ( ydb) +
1
aes(
2
x = s d_ alue,
3
y = s ing ::s _ unc( ai _name, 30)
4
) +
5
geom_ji e (
6
heigh = .3,
7
alpha = .05
8
) +
9
scale_x_log10()
1
0
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo (da a = ydb) +
1
aes(
2
x = s d_ alue + 1,
3
y = s ing ::s _ unc( ai _name, 30)
4
) +
5
geom_ji e (
6
heigh = .3,
7
alpha = .05
8
) +
9
scale_x_log10()
1
0
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo ( ydb_ni o) +
1
aes(x = s d_ alue) +
2
geom_his og am()
3
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo ( ydb_ni o) +
1
aes(x = s d_ alue) +
2
geom_his og am() +
3
ace _w ap(
4
~ s ing ::wo d(species_name, 1),
5
ncol = 2
6
)
7
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Visualize he Da a
ggplo ( ydb_ni o) +
1
aes(
2
x = s d_ alue,
3
y = species_name
4
) +
5
geom_boxplo ()
6
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo ( ydb_ni o) +
1
aes(
2
x = s d_ alue,
3
y = species_name
4
) +
5
s a _summa y()
6
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo ( ydb_ni o) +
1
aes(
2
x = s d_ alue,
3
y = species_name
4
) +
5
s a _summa y(
6
un = "mean",
7
un.min = unc ion(x) mean(x, na. m = TR
8
un.max = unc ion(x) mean(x, na. m = TR
9
)
1
0
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Polish he Da a Visualiza ion
ggplo ( ydb_ni o) +
1
aes(
2
x = s d_ alue,
3
y = species_name
4
) +
5
s a _summa y(
6
un = "mean",
7
un.min = unc ion(x) mean(x, na. m = TR
8
un.max = unc ion(x) mean(x, na. m = TR
9
) +
1
0
scale_x_con inuous(
11
expand = expansion(add = c(0, .5)),
12
limi s = c(0, NA),
13
labels = scales::numbe _ o ma (su ix =
14
) +
15
scale_y_disc e e(limi s = e ) +
16
labs(
17
x = "Lea ni ogen (N) con en pe lea
18
y = NULL
19
) +
2
0
heme_minimal(
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Polish he Da a Visualiza ion
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Polish he Da a Visualiza ion
ggplo ( ydb_ni o) +
1
aes(
2
x = s d_ alue,
3
y = o ca s:: c _ eo de (species_name, s
4
) +
5
s a _summa y(
6
un = "mean",
7
un.min = unc ion(x) mean(x, na. m = TR
8
un.max = unc ion(x) mean(x, na. m = TR
9
) +
1
0
coo d_ca esian(clip = "o ") +
11
scale_x_con inuous(
12
expand = expansion(add = c(0, .5)),
13
limi s = c(0, NA),
14
labels = scales::numbe _ o ma (su ix =
15
) +
16
labs(
17
x = "Lea ni ogen (N) con en pe lea
18
y = NULL
19
) +
2
0
heme_minimal(
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Polish he Da a Visualiza ion
ggplo ( ydb_ni o) +
1
aes(
2
x = s d_ alue,
3
y = o ca s:: c _ eo de (species_name, s
4
) +
5
geom_ji e (
6
heigh = .25,
7
alpha = .3,
8
size = .6,
9
colo = "g ey60"
1
0
) +
11
s a _summa y(
12
un = "mean",
13
un.min = unc ion(x) mean(x, na. m = TR
14
un.max = unc ion(x) mean(x, na. m = TR
15
) +
16
coo d_ca esian(clip = "o ") +
17
scale_x_con inuous(
18
expand = expansion(add = c(0, .5)),
19
limi s = c(0, NA),
2
0
labels = scales::numbe _ o ma (su ix =
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Adjus he Da a De ail
ydb_ni o |>
1
mu a e(genus_name = s ing ::wo d(species_
2
ggplo () +
3
aes(
4
x = s d_ alue,
5
y = o ca s:: c _ eo de (genus_name, s d_
6
) +
7
geom_ji e (
8
heigh = .25,
9
alpha = .2,
1
0
size = .6,
11
colo = "g ey60"
12
) +
13
s a _summa y(
14
un = "mean",
15
un.min = unc ion(x) mean(x, na. m = TR
16
un.max = unc ion(x) mean(x, na. m = TR
17
) +
18
coo d_ca esian(clip = "o ") +
19
scale_x_con inuous(
2
0
expand = expansion(add = c(0, .5)),
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
ggplo (gbi _common) +
1
aes(y = o ca s:: c _in eq(species)) +
2
geom_ba (wid h = .7) +
3
scale_y_disc e e(limi s = e )
4
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Visualize he Da a
g <-
1
ggplo (gbi _common) +
2
aes(y = o ca s:: c _in eq(species)) +
3
geom_ba (
4
aes( ill = species == "Que cus obu "),
5
wid h = .7
6
) +
7
scale_y_disc e e(limi s = e ) +
8
scale_ ill_manual(
9
alues = c("g ey50", "#28A87D"), guide =
1
0
) +
11
labs(
12
x = "Numbe o obse a ions in Ge many",
13
y = NULL,
14
cap ion = "Da a: Global Biodi e si y In
15
) +
16
heme_minimal(
17
base_ amily = "Robo o Condensed",
18
base_size = 14
19
)
2
0
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
g +
1
coo d_ca esian(clip = "o ") +
2
scale_x_con inuous(
3
expand = expansion(add = c(0, .5)),
4
limi s = c(0, NA),
5
labels = scales::comma
6
) +
7
heme(
8
panel.g id.mino = elemen _blank(),
9
panel.g id.majo .y = elemen _blank(),
1
0
axis. i le.x = elemen _ ex (hjus = 0),
11
axis. ex .y = elemen _ ex ( ace = "i ali
12
plo .cap ion = elemen _ ex (colo = "g e
13
plo .cap ion.posi ion = "plo "
14
)
15
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
g +
1
s a _coun (
2
geom = " ex ",
3
aes(label = a e _s a (coun )),
4
hjus = 1.1,
5
amily = "Robo o Condensed",
6
colo = "whi e",
7
on ace = "bold"
8
) +
9
scale_x_con inuous(
1
0
expand = expansion(add = c(0, .5)),
11
limi s = c(0, NA),
12
guide = "none",
13
name = NULL
14
) +
15
labs( i le = "The English oak (Que cus ob
16
heme(
17
panel.g id.mino = elemen _blank(),
18
panel.g id.majo = elemen _blank(),
19
axis. ex .y = elemen _ ex ( ace = "i ali
2
0
plo .cap ion = elemen _ ex (colo = "g e
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
g +
1
s a _coun (
2
geom = " ex ",
3
aes(label = a e _s a ( o ma (coun , big
4
hjus = 1.2,
5
amily = "Robo o Condensed",
6
colo = "whi e",
7
on ace = "bold"
8
) +
9
scale_x_con inuous(
1
0
expand = expansion(add = c(0, .5)),
11
limi s = c(0, NA),
12
guide = "none",
13
name = NULL
14
) +
15
labs( i le = "The English oak (Que cus ob
16
heme(
17
panel.g id.mino = elemen _blank(),
18
panel.g id.majo = elemen _blank(),
19
axis. ex .y = elemen _ ex ( ace = "i ali
2
0
plo .cap ion = elemen _ ex (colo = "g e
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Visualize he Da a
g +
1
s a _coun (
2
geom = " ex ",
3
aes(label = a e _s a ( o ma (coun , big
4
hjus = 1.2,
5
amily = "Robo o Condensed",
6
colo = "whi e",
7
on ace = "bold"
8
) +
9
scale_x_con inuous(
1
0
expand = expansion(add = c(0, .5)),
11
limi s = c(0, NA),
12
guide = "none",
13
name = NULL
14
) +
15
labs( i le = "The English oak (*Que cus o
16
heme(
17
panel.g id.mino = elemen _blank(),
18
panel.g id.majo = elemen _blank(),
19
axis. ex .y = elemen _ ex ( ace = "i ali
2
0
plo .cap ion = elemen _ ex (colo = "g e
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e

Visualize he Da a
g +
1
s a _coun (
2
geom = " ex ",
3
aes(label = a e _s a ( o ma (coun , big
4
hjus = 1.1,
5
amily = "Robo o Condensed",
6
colo = "whi e",
7
on ace = "bold"
8
) +
9
scale_x_con inuous(
1
0
expand = expansion(add = c(0, .5)),
11
limi s = c(0, NA),
12
guide = "none",
13
name = NULL
14
) +
15
labs( i le = "The <span s yle='colo :#28A8
16
heme(
17
panel.g id.mino = elemen _blank(),
18
panel.g id.majo = elemen _blank(),
19
axis. ex .y = elemen _ ex ( ace = "i ali
2
0
plo .cap ion = elemen _ ex (colo = "g e
21
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Sa e he G aphic
## sa e s o ed plo
1
ggsa e( ilename = "my_plo .png", plo = g)
2
## sa e las plo (wi h implici ma ching o ` ilename`)
1
ggsa e("my_plo .png")
2
## sa e las plo wi h cus om se ings
1
ggsa e("my_plo .png", wid h = 6.7, heigh = 5, dpi = 600)
2
## sa e las plo wi h cus om uni
1
ggsa e("my_plo .png", wid h = 17.02, heigh = 12.7, uni = "cm", dpi = 600)
2
## sa e las plo as PDF ile
1
ggsa e("my_plo .pd ", wid h = 6.7, heigh = 5, de ice = cai o_pd )
2
## sa e las plo as SVG ile
1
ggsa e("my_plo .s g", wid h = 6.7, heigh = 5)
2
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
W ap-Up
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
The Componen s o a ggplo
Componen Func ion Explana ion
Da a ggplo (da a) The aw da a ha you wan o
isualize (ini ializing a plo ).
Aes he ics aes() The mapping be ween a iables and
isual p ope ies.
Geome ies geom_*() The geome ic shape o a laye
ep esen ing he da a.
S a is ics s a _*() The s a is ical ans o ma ion o a
laye applied o he da a.
Scales scale_*() The ep esen a ion o mapped
aes he ic a ibu es.
Coo dina e Sys em coo d_*() The ans o ma ion o map da a
coo dina es in o he plo plane.
Face s ace _*() The a angemen o he da a in o a
se o small mul iples.
Visual Themes heme() | heme_*() The o e all isual de aul s o non-
da a elemen s o he g aphic.
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e
Thank You!
//
www.ced icsche e .com www.
l
ink .ee/CedSche e
Da a Visua
l
iza ion & In o ma ion Design
Céd ic Sche e