It would take any thoughts on how to make my code or binary behave. My dataset contains time stamps collected every few hours "4", and daily "24". I am trying to build a 4-hour histogram with a histogram on the left and a 24-second histogram with a histogram on the right. So I want the bin width on the right to be 6x wider than the left bin width. But everything I tried with binwidth did not work. The x, data3 $ dts axis data seems continuous, not discrete, but maybe I'm not doing it right.
Important note about data: data that has charts on the right, clock = 24, has a value of dts, which is always an integer. The data on the left, the clock = 4 data, have non-integer dts.
"dts" "Yes" "No" "Maybe" "hours" "days" "258" 15627.668 8 0 1 4 "7 Days" "259" 15627.832 13 11 18 4 "7 Days" "260" 15628 34 47 89 4 "7 Days" "261" 15628 37 47 90 24 "7 Days" "262" 15628.168 3 0 1 4 "7 Days" "40" 15571 345 419 674 24 "90 Days" "41" 15571.5 91 145 130 4 "90 Days" "42" 15571.668 158 149 284 4 "90 Days" "43" 15571.832 96 125 260 4 "90 Days" "44" 15572 55 33 137 4 "90 Days" "45" 15572 1050 1119 2660 24 "90 Days"
Code with data pulled from pastebin:
library (ggplot2) library (scales) library(grid) library(gridExtra) color3 <- c("mediumspringgreen","red","grey44") titles.days <- c( "7 Days", "90 Days") names.facetby <- c ("dts", "hours", "days") data3 <- read.table ("http://pastebin.com/download.php?i=wUQQUXP4", header=TRUE) data3.melt <- melt (data3 , id = names.facetby ) data3.melt$days <- factor (data3.melt$days, levels = titles.days)
Current results showing correct one-sided graphs with too narrow a layer of width:

source share