1. load pacakge
Code
using CairoMakie,CSV,DataFrames,Pipe,Tidier,AlgebraOfGraphics
2. load data->dataframe
Code
df=@pipe CSV.File("./data/penguins.csv")|>DataFrame
first(df,10)
1 |
Adelie |
Torgersen |
39.1 |
18.7 |
181 |
3750 |
male |
2 |
Adelie |
Torgersen |
39.5 |
17.4 |
186 |
3800 |
female |
3 |
Adelie |
Torgersen |
40.3 |
18 |
195 |
3250 |
female |
4 |
Adelie |
Torgersen |
NA |
NA |
NA |
NA |
NA |
5 |
Adelie |
Torgersen |
36.7 |
19.3 |
193 |
3450 |
female |
6 |
Adelie |
Torgersen |
39.3 |
20.6 |
190 |
3650 |
male |
7 |
Adelie |
Torgersen |
38.9 |
17.8 |
181 |
3625 |
female |
8 |
Adelie |
Torgersen |
39.2 |
19.6 |
195 |
4675 |
male |
9 |
Adelie |
Torgersen |
34.1 |
18.1 |
193 |
3475 |
NA |
10 |
Adelie |
Torgersen |
42 |
20.2 |
190 |
4250 |
NA |
Code
1 |
species |
|
Adelie |
|
Gentoo |
0 |
String15 |
2 |
island |
|
Biscoe |
|
Torgersen |
0 |
String15 |
3 |
bill_length_mm |
|
32.1 |
|
NA |
0 |
String7 |
4 |
bill_depth_mm |
|
13.1 |
|
NA |
0 |
String7 |
5 |
flipper_length_mm |
|
172 |
|
NA |
0 |
String3 |
6 |
body_mass_g |
|
2700 |
|
NA |
0 |
String7 |
7 |
sex |
|
NA |
|
male |
0 |
String7 |
#penguins = dropmissing(DataFrame(PalmerPenguins.load()))