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)
ggplot(storms) +
aes(year, wind, color = year) +
geom_col()
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()