I generated the histogram with the following code:
# Load Data
file <- "SharedData.csv"
data <- read.csv(file,header = TRUE,sep = ",")
## Bin Levels
data$xLevel <- cut(data$xLevel,
breaks = quantile(data$xLevel,(0:5)/5),
labels = paste("Quant",1:5,sep = "."),
include.lowest = TRUE,ordered_result = TRUE)
# Histogram
g <- ggplot(data, aes(x=xTime,color = xLevel)) +
geom_histogram(aes(y=..density..),
binwidth=100)
g
How do I create the above histogram with an x axis that goes from 0-300 and from 1500-2400, but not include 300-1500? The unit here is military time.
Data: https://www.dropbox.com/s/e5gaym7dhefs04e/SharedData.csv?dl=0