Exercicio

Questão 1

Resposta questão 1

## Warning in plot.xy(xy.coords(x, y), type = type, ...): "name" não é um parâmetro
## gráfico

Questão 2

Resposta questão 2

Questão 3

Resposta questão 3

library(tidyr)
library(dplyr)
library(plotly)
library(tm)
library(wordcloud)
library(RColorBrewer)
library(readr)
library(pdftools)

temperatura <- airquality %>%filter(Month ==5) %>%select(Temp)
temperatura$Temp <- (temperatura$Temp-32)/ 1.8
density <- density(temperatura$Temp)
hist(temperatura$Temp, 
     main = "Airquality: Mês de Maio",
     xlab = "Temperaturas em ºC", ylab = "Probabilidades", 
     freq= F, col = brewer.pal(n = 8, name = "Set3"))
lines(density)

Questão 4

Resposta questão 4

##   COUNTRY SALES
## 1      US   340
## 2      UK   290
## 3  France   510
## 4  Poland   820
## 5   Japan   120
## 6   China   780

Questão 5

Resposta questão 5

Questão 6

Resposta questão 6

## -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
## v tibble  3.1.5     v stringr 1.4.0
## v purrr   0.3.4     v forcats 0.5.1
## -- Conflicts ------------------------------------------ tidyverse_conflicts() --
## x NLP::annotate()  masks ggplot2::annotate()
## x plotly::filter() masks dplyr::filter(), stats::filter()
## x dplyr::lag()     masks stats::lag()

Questão 7

Resposta questão 7

## Warning: 'pie' objects don't have these attributes: 'mean'
## Valid attributes include:
## '_deprecated', 'automargin', 'customdata', 'customdatasrc', 'direction', 'dlabel', 'domain', 'hole', 'hoverinfo', 'hoverinfosrc', 'hoverlabel', 'hovertemplate', 'hovertemplatesrc', 'hovertext', 'hovertextsrc', 'ids', 'idssrc', 'insidetextfont', 'insidetextorientation', 'label0', 'labels', 'labelssrc', 'legendgroup', 'legendgrouptitle', 'legendrank', 'marker', 'meta', 'metasrc', 'name', 'opacity', 'outsidetextfont', 'pull', 'pullsrc', 'rotation', 'scalegroup', 'showlegend', 'sort', 'stream', 'text', 'textfont', 'textinfo', 'textposition', 'textpositionsrc', 'textsrc', 'texttemplate', 'texttemplatesrc', 'title', 'transforms', 'type', 'uid', 'uirevision', 'values', 'valuessrc', 'visible', 'key', 'set', 'frame', 'transforms', '_isNestedKey', '_isSimpleKey', '_isGraticule', '_bbox'

Questão 8

Resposta questão 8

Questão 9

Resposta questão 9

## `summarise()` has grouped output by 'decada'. You can override using the `.groups` argument.
## `summarise()` has grouped output by 'decada'. You can override using the `.groups` argument.

Questão 10

Resposta questão 10

## Warning: Expected 3 pieces. Missing pieces filled with `NA` in 526 rows [2, 4,
## 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 19, 21, 22, 25, 26, 29, 31, 33, ...].
## `summarise()` has grouped output by 'release_year'. You can override using the `.groups` argument.