-
Notifications
You must be signed in to change notification settings - Fork 0
/
PRACTICA PINGUINO.R
40 lines (34 loc) · 1.14 KB
/
PRACTICA PINGUINO.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
library(palmerpenguins)
data<-penguins
dataraw<-penguins_raw
caret::preProcess()
library(caret)
library(lattice)
library(AppliedPredictiveModeling)
str(penguins)
transparentTheme(trans = .4)
featurePlot(x = penguins[, 3:6],
y = penguins$species,
plot = "pairs",
## Add a key at the top
auto.key = list(columns = 3))
transparentTheme(trans = .9)
featurePlot(x = penguins[, 3:6],
y = penguins$species,
plot = "density",
## Pass in options to xyplot() to
## make it prettier
scales = list(x = list(relation="free"),
y = list(relation="free")),
adjust = 1.5,
pch = "|",
layout = c(4, 1),
auto.key = list(columns = 3))
featurePlot(x = penguins[, 3:6],
y = penguins$species,
plot = "box",
## Pass in options to bwplot()
scales = list(y = list(relation="free"),
x = list(rot = 90)),
layout = c(4,1 ),
auto.key = list(columns = 2))