Last active
April 3, 2016 18:40
-
-
Save andresAlvarado/202162e81e5ff61c9f5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cargar librerias | |
library( package = 'ggplot2' ) | |
# Leer dataset | |
d_historico <- read.table( file = 'datafile' | |
, header = T | |
, sep = ',' | |
, colClasses = c('character','character','numeric') | |
) | |
# Crear grafica con ggplot | |
g_historico <- ( ggplot( data = d_historico | |
, aes( x = dia | |
, y = peticiones | |
, group = semana | |
, col = semana | |
) | |
) | |
+ geom_line() | |
+ geom_point() | |
+ theme_bw() | |
+ theme( legend.title = element_blank() | |
, axis.ticks = element_blank() | |
, legend.position = 'none' | |
) | |
+ labs( x = 'Dia' | |
, y = 'Peticiones' | |
) | |
) | |
# Mostrar grafica | |
plot( x = g_historico ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment