Contexto

Explorar distintas formas de graficar

Importar la base de datos

# file.choose()
df <- read.csv("/Users/andrea_crvaz/abarrotes_limpia.csv")

Realizar graficas

# install.packages("ggplot2")
library(ggplot2)
ggplot(df, aes(x = Subtotal))+ 
  geom_histogram()+
  labs(
    title = "Histograma de Subtotales",
    subtitle = "Caso Abarrotes",
      y = "Cantidad"
  )
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

ggplot(df, aes(x = Precio, y = Unidades, color= NombreDepartamento))+ 
  geom_point()+
  labs(
    title = "Grafica de puntos",
    subtitle = "Caso Abarrotes",
)

```