Buscaremos diferentes formas de graficar
df <- read.csv("C:\\Users\\memil\\OneDrive\\Desktop\\aaTecDeMonterrey\\5to Semestre\\SemanaTecProgra\\abarrotes_df_limpio.csv")## Warning: package 'ggplot2' was built under R version 4.3.1
ggplot(df, aes(x=Subtotal)) +
geom_histogram() +
labs(
title = "Histograma de Subtotales",
subtitle = "Caso Abarrotes",
y = "Qty"
)## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
ggplot(df, aes(x=Precio, y=Unidades, colour=NombreDepartamento)) +
geom_point() +
labs(
title = "Gráfica de puntos de Unidades y Precio",
subtitle = "Caso Abarrotes"
)