Aula de dados

Diego Lago

Curso de Engenharia

Centro de Universitário Celso Lisboa

Rio de Janeiro, 12 de Novembro de 2026

title: “Diego Lago 1” output: html_document —

library(dplyr) library(ggplot2)

library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
library(ggplot2)

Gráficos de Colunas

ggplot(storms) +
  aes(year, wind, color = year) +
  geom_col() 

Gráfico de barras

ggplot(storms) +
  aes(wind) +
    geom_bar(color = "blue", fill = "green") 

# Histograma

ggplot(storms) +
    aes(wind) +
    geom_histogram(bins = 15, color = "green", fill = "yellow")

# Gráfico de pontos - scaterplot

ggplot(storms) +
  aes(year, wind) +
  geom_point()

# Gráfico

ggplot(storms) +
  aes(year, wind, color = category, size = wind) +
  geom_point()