forked from astuciasnor/tutorial-versionamento-codigos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest.R
34 lines (19 loc) · 855 Bytes
/
request.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
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#
# PRATICANDO O PULL REQUEST
#
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Crie um vetor x numérico aqui -----------------------------------------------
x <- -10:10
# Crie um vetor y em função do vetor x acima ----------------------------------
y <- x^3
# Crie um dataframe chamado df unindo os vetores x e y ------------------------
library(tibble)
df <- tibble(x,y)
# Crie um grafico de pontos com o dataframe df o ggplot -----------------------
library(ggplot2)
df |>
ggplot(aes(x, y)) +
geom_point(col = "red", size = 3)
# Adicione ao gráfico ma curva de tendência suavizada(geom_smooth) -------------
# Mude o tema do gráfico para minimal ------------------------------------------