scale_x_datetime showing two ticks for the same day even when major="1 day"

70 views
Skip to first unread message

MakoSwift

unread,
Jan 31, 2011, 1:58:30 PM1/31/11
to ggplot2
I am trying to create a line graph for five days at a time. I have a
continuous y variable, and a date time x variable.

It works well for all dates except when I hit November 07, 2010. It
puts two tick marks for November 07, even though I have major = "1
day"

Any ideas what I've done wrong?

Here is a snippet of my code:
gp<-ggplot()+ opts(axis.title.x=theme_blank()) +
scale_x_datetime(limits = c(as.POSIXct("2010-11-06"),
as.POSIXct("2010-11-10")), minor="1 day")

gpturb<-gp + geom_line(data=dat,aes(x=ReadingDateTime,y=Turbidity),
color="black")+ ylab("Turbidity (NTU)") +
opts(axis.title.y = theme_text(size=12, angle=90))

Thanks for your help

Scott Chamberlain

unread,
Jan 31, 2011, 2:18:58 PM1/31/11
to MakoSwift, ggplot2
Could you provide a reproducible example please. The object "dat" should be provided in the code. 

Scott
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442

To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2

MakoSwift

unread,
Jan 31, 2011, 3:32:18 PM1/31/11
to ggplot2
Sorry this is so long, here it is:

dat<-structure(list(Turbidity = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0.8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ReadingDateTime =
structure(c(1288940700,
1288941000, 1288941300, 1288941600, 1288941900, 1288942200,
1288942500,
1288942800, 1288943100, 1288943400, 1288943700, 1288944000,
1288944300,
1288944600, 1288944900, 1288945200, 1288945500, 1288945800,
1288946100,
1288946400, 1288946700, 1288947000, 1288947300, 1288947600,
1288947900,
1288948200, 1288948500, 1288948800, 1288949100, 1288949400,
1288949700,
1288950000, 1288950300, 1288950600, 1288950900, 1288951200,
1288951500,
1288951800, 1288952100, 1288952400, 1288952700, 1288953000,
1288953300,
1288953600, 1288953900, 1288954200, 1288954500, 1288954800,
1288955100,
1288955400, 1288955700, 1288956000, 1288956300, 1288956600,
1288956900,
1288957200, 1288957500, 1288957800, 1288958100, 1288958400,
1288958700,
1288959000, 1288959300, 1288959600, 1288959900, 1288960200,
1288960500,
1288960800, 1288961100, 1288961400, 1288961700, 1288962000,
1288962300,
1288962600, 1288962900, 1288963200, 1288963500, 1288963800,
1288964100,
1288964400, 1288964700, 1288965000, 1288965300, 1288965600,
1288965900,
1288966200, 1288966500, 1288966800, 1288967100, 1288967400,
1288967700,
1288968000, 1288968300, 1288968600, 1288968900, 1288969200,
1288969500,
1288969800, 1288970100, 1288970400, 1288970700, 1288971000,
1288971300,
1288971600, 1288971900, 1288972200, 1288972500, 1288972800,
1288973100,
1288973400, 1288973700, 1288974000, 1288974300, 1288974600,
1288974900,
1288975200, 1288975500, 1288975800, 1288976100, 1288976400,
1288976700,
1288977000, 1288977300, 1288977600, 1288977900, 1288978200,
1288978500,
1288978800, 1288979100, 1288979400, 1288979700, 1288980000,
1288980300,
1288980600, 1288980900, 1288981200, 1288981500, 1288981800,
1288982100,
1288982400, 1288982700, 1288983000, 1288983300, 1288983600,
1288983900,
1288984200, 1288984500, 1288984800, 1288985100, 1288985400,
1288985700,
1288986000, 1288986300, 1288986600, 1288986900, 1288987200,
1288987500,
1288987800, 1288988100, 1288988400, 1288988700, 1288989000,
1288989300,
1288989600, 1288989900, 1288990200, 1288990500, 1288990800,
1288991100,
1288991400, 1288991700, 1288992000, 1288992300, 1288992600,
1288992900,
1288993200, 1288993500, 1288993800, 1288994100, 1288994400,
1288994700,
1288995000, 1288995300, 1288995600, 1288995900, 1288996200,
1288996500,
1288996800, 1288997100, 1288997400, 1288997700, 1288998000,
1288998300,
1288998600, 1288998900, 1288999200, 1288999500, 1288999800,
1289000100,
1289000400, 1289000700, 1289001000, 1289001300, 1289001600,
1289001900,
1289002200, 1289002500, 1289002800, 1289003100, 1289003400,
1289003700,
1289004000, 1289004300, 1289004600, 1289004900, 1289005200,
1289005500,
1289005800, 1289006100, 1289006400, 1289006700, 1289007000,
1289007300,
1289007600, 1289007900, 1289008200, 1289008500, 1289008800,
1289009100,
1289009400, 1289009700, 1289010000, 1289010300, 1289010600,
1289010900,
1289011200, 1289011500, 1289011800, 1289012100, 1289012400,
1289012700,
1289013000, 1289013300, 1289013600, 1289013900, 1289014200,
1289014500,
1289014800, 1289015100, 1289015400, 1289015700, 1289016000,
1289016300,
1289016600, 1289016900, 1289017200, 1289017500, 1289017800,
1289018100,
1289018400, 1289018700, 1289019000, 1289019300, 1289019600,
1289019900,
1289020200, 1289020500, 1289020800, 1289021100, 1289021400,
1289021700,
1289022000, 1289022300, 1289022600, 1289022900, 1289023200,
1289023500,
1289023800, 1289024100, 1289024400, 1289024700, 1289025000,
1289025300,
1289025600, 1289025900, 1289026200, 1289026500, 1289026800,
1289027100,
1289027400, 1289027700, 1289028000, 1289028300, 1289028600,
1289028900,
1289029200, 1289029500, 1289029800, 1289030100, 1289030400,
1289030700,
1289031000, 1289031300, 1289031600, 1289031900, 1289032200,
1289032500,
1289032800, 1289033100, 1289033400, 1289033700, 1289034000,
1289034300,
1289034600, 1289034900, 1289035200, 1289035500, 1289035800,
1289036100,
1289036400, 1289036700, 1289037000, 1289037300, 1289037600,
1289037900,
1289038200, 1289038500, 1289038800, 1289039100, 1289039400,
1289039700,
1289040000, 1289040300, 1289040600, 1289040900, 1289041200,
1289041500,
1289041800, 1289042100, 1289042400, 1289042700, 1289043000,
1289043300,
1289043600, 1289043900, 1289044200, 1289044500, 1289044800,
1289045100,
1289045400, 1289045700, 1289046000, 1289046300, 1289046600,
1289046900,
1289047200, 1289047500, 1289047800, 1289048100, 1289048400,
1289048700,
1289049000, 1289049300, 1289049600, 1289049900, 1289050200,
1289050500,
1289050800, 1289051100, 1289051400, 1289051700, 1289052000,
1289052300,
1289052600, 1289052900, 1289053200, 1289053500, 1289053800,
1289054100,
1289054400, 1289054700, 1289055000, 1289055300, 1289055600,
1289055900,
1289056200, 1289056500, 1289056800, 1289057100, 1289057400,
1289057700,
1289058000, 1289058300, 1289058600, 1289058900, 1289059200,
1289059500,
1289059800, 1289060100, 1289060400, 1289060700, 1289061000,
1289061300,
1289061600, 1289061900, 1289062200, 1289062500, 1289062800,
1289063100,
1289063400, 1289063700, 1289064000, 1289064300, 1289064600,
1289064900,
1289065200, 1289065500, 1289065800, 1289066100, 1289066400,
1289066700,
1289067000, 1289067300, 1289067600, 1289067900, 1289068200,
1289068500,
1289068800, 1289069100, 1289069400, 1289069700, 1289070000,
1289070300,
1289070600, 1289070900, 1289071200, 1289071500, 1289071800,
1289072100,
1289072400, 1289072700, 1289073000, 1289073300, 1289073600,
1289073900,
1289074200, 1289074500, 1289074800, 1289075100, 1289075400,
1289075700,
1289076000, 1289076300, 1289076600, 1289076900, 1289077200,
1289077500,
1289077800, 1289078100, 1289078400, 1289078700, 1289079000,
1289079300,
1289079600, 1289079900, 1289080200, 1289080500, 1289080800,
1289081100,
1289081400, 1289081700, 1289082000, 1289082300, 1289082600,
1289082900,
1289083200, 1289083500, 1289083800, 1289084100, 1289084400,
1289084700,
1289085000, 1289085300, 1289085600, 1289085900, 1289086200,
1289086500,
1289086800, 1289087100, 1289087400, 1289087700, 1289088000,
1289088300,
1289088600, 1289088900, 1289089200, 1289089500, 1289089800,
1289090100,
1289090400, 1289090700, 1289091000, 1289091300, 1289091600,
1289091900,
1289092200, 1289092500, 1289092800, 1289093100, 1289093400,
1289093700,
1289094000, 1289094300, 1289094600, 1289094900, 1289095200,
1289095500,
1289095800, 1289096100, 1289096400, 1289096700, 1289097000,
1289097300,
1289097600, 1289097900, 1289098200, 1289098500, 1289098800,
1289099100,
1289099400, 1289099700, 1289100000, 1289100300, 1289100600,
1289100900,
1289101200, 1289101500, 1289101800, 1289102100, 1289102400,
1289102700,
1289103000, 1289103300, 1289103600, 1289103900, 1289104200,
1289104500,
1289104800, 1289105100, 1289105400, 1289105700, 1289106000,
1289106300,
1289106600, 1289106900, 1289107200, 1289107500, 1289107800,
1289108100,
1289108400, 1289108700, 1289109000, 1289109300, 1289109600,
1289109900,
1289110200, 1289110500, 1289110800, 1289111100, 1289111400,
1289111700,
1289112000, 1289112300, 1289112600, 1289112900, 1289113200,
1289113500,
1289113800, 1289114100, 1289114400, 1289114700, 1289115000,
1289115300,
1289115600, 1289115900, 1289116200, 1289116500, 1289116800,
1289117100,
1289117400, 1289117700, 1289118000, 1289121900, 1289122200,
1289122500,
1289122800, 1289123100, 1289123400, 1289123700, 1289124000,
1289124300,
1289124600, 1289124900, 1289125200, 1289125500, 1289125800,
1289126100,
1289126400, 1289126700, 1289127000, 1289127300, 1289127600,
1289127900,
1289128200, 1289128500, 1289128800, 1289129100, 1289129400,
1289129700,
1289130000, 1289130300, 1289130600, 1289130900, 1289131200,
1289131500,
1289131800, 1289132100, 1289132400, 1289132700, 1289133000,
1289133300,
1289133600, 1289133900, 1289134200, 1289134500, 1289134800,
1289135100,
1289135400, 1289135700, 1289136000, 1289136300, 1289136600,
1289136900,
1289137200, 1289137500, 1289137800, 1289138100, 1289138400,
1289138700,
1289139000, 1289139300, 1289139600, 1289139900, 1289140200,
1289140500,
1289140800, 1289141100, 1289141400, 1289141700, 1289142000,
1289142300,
1289142600, 1289142900, 1289143200, 1289143500, 1289143800,
1289144100,
1289144400, 1289144700, 1289145000, 1289145300, 1289145600,
1289145900,
1289146200, 1289146500, 1289146800, 1289147100, 1289147400,
1289147700,
1289148000, 1289148300, 1289148600, 1289148900, 1289149200,
1289149500,
1289149800, 1289150100, 1289150400, 1289150700, 1289151000,
1289151300,
1289151600, 1289151900, 1289152200, 1289152500, 1289152800,
1289153100,
1289153400, 1289153700, 1289154000, 1289154300, 1289154600,
1289154900,
1289155200, 1289155500, 1289155800, 1289156100, 1289156400,
1289156700,
1289157000, 1289157300, 1289157600, 1289157900, 1289158200,
1289158500,
1289158800, 1289159100, 1289159400, 1289159700, 1289160000,
1289160300,
1289160600, 1289160900, 1289161200, 1289161500, 1289161800,
1289162100,
1289162400, 1289162700, 1289163000, 1289163300, 1289163600,
1289163900,
1289164200, 1289164500, 1289164800, 1289165100, 1289165400,
1289165700,
1289166000, 1289166300, 1289166600, 1289166900, 1289167200,
1289167500,
1289167800, 1289168100, 1289168400, 1289168700, 1289169000,
1289169300,
1289169600, 1289169900, 1289170200, 1289170500, 1289170800,
1289171100,
1289171400, 1289171700, 1289172000, 1289172300, 1289172600,
1289172900,
1289173200, 1289173500, 1289173800, 1289174100, 1289174400,
1289174700,
1289175000, 1289175300, 1289175600, 1289175900, 1289176200,
1289176500,
1289176800, 1289177100, 1289177400, 1289177700, 1289178000,
1289178300,
1289178600, 1289178900, 1289179200, 1289179500, 1289179800,
1289180100,
1289180400, 1289180700, 1289181000, 1289181300, 1289181600,
1289181900,
1289182200, 1289182500, 1289182800, 1289183100, 1289183400,
1289183700,
1289184000, 1289184300, 1289184600, 1289184900, 1289185200,
1289185500,
1289185800, 1289186100, 1289186400, 1289186700, 1289187000,
1289187300,
1289187600, 1289187900, 1289188200, 1289188500, 1289188800,
1289189100,
1289189400, 1289189700, 1289190000, 1289190300, 1289190600,
1289190900,
1289191200, 1289191500, 1289191800, 1289192100, 1289192400,
1289192700,
1289193000, 1289193300, 1289193600, 1289193900, 1289194200,
1289194500,
1289194800, 1289195100, 1289195400, 1289195700, 1289196000,
1289196300,
1289196600, 1289196900, 1289197200, 1289197500, 1289197800,
1289198100,
1289198400, 1289198700, 1289199000, 1289199300, 1289199600,
1289199900,
1289200200, 1289200500, 1289200800, 1289201100, 1289201400,
1289201700,
1289202000, 1289202300, 1289202600, 1289202900, 1289203200,
1289203500,
1289203800, 1289204100, 1289204400, 1289204700, 1289205000,
1289205300,
1289205600, 1289205900, 1289206200, 1289206500, 1289206800,
1289207100,
1289207400, 1289207700, 1289208000, 1289208300, 1289208600,
1289208900,
1289209200, 1289209500, 1289209800, 1289210100, 1289210400,
1289210700,
1289211000, 1289211300, 1289211600, 1289211900, 1289212200,
1289212500,
1289212800, 1289213100, 1289213400, 1289213700, 1289214000,
1289214300,
1289214600, 1289214900, 1289215200, 1289215500, 1289215800,
1289216100,
1289216400, 1289216700, 1289217000, 1289217300, 1289217600,
1289217900,
1289218200, 1289218500, 1289218800, 1289219100, 1289219400,
1289219700,
1289220000, 1289220300, 1289220600, 1289220900, 1289221200,
1289221500,
1289221800, 1289222100, 1289222400, 1289222700, 1289223000,
1289223300,
1289223600, 1289223900, 1289224200, 1289224500, 1289224800,
1289225100,
1289225400, 1289225700, 1289226000, 1289226300, 1289226600,
1289226900,
1289227200, 1289227500, 1289227800, 1289228100, 1289228400,
1289228700,
1289229000, 1289229300, 1289229600, 1289229900, 1289230200,
1289230500,
1289230800, 1289231100, 1289231400, 1289231700, 1289232000,
1289232300,
1289232600, 1289232900, 1289233200, 1289233500, 1289233800,
1289234100,
1289234400, 1289234700, 1289235000, 1289235300, 1289235600,
1289235900,
1289236200, 1289236500, 1289236800, 1289237100, 1289237400,
1289237700,
1289238000, 1289238300, 1289238600, 1289238900, 1289239200,
1289239500,
1289239800, 1289240100, 1289240400, 1289240700, 1289241000,
1289241300,
1289241600, 1289241900, 1289242200, 1289242500, 1289242800,
1289243100,
1289243400, 1289243700, 1289244000, 1289244300, 1289244600,
1289244900,
1289245200, 1289245500, 1289245800, 1289246100, 1289246400,
1289246700,
1289247000, 1289247300, 1289247600, 1289247900, 1289248200,
1289248500,
1289248800, 1289249100, 1289249400, 1289249700, 1289250000,
1289250300,
1289250600, 1289250900, 1289251200, 1289251500, 1289251800,
1289252100,
1289252400, 1289252700, 1289253000, 1289253300, 1289253600,
1289253900,
1289254200, 1289254500, 1289254800, 1289255100, 1289255400,
1289255700,
1289256000, 1289256300, 1289256600, 1289256900, 1289257200,
1289257500,
1289257800, 1289258100, 1289258400, 1289258700, 1289259000,
1289259300,
1289259600, 1289259900, 1289260200, 1289260500, 1289260800,
1289261100,
1289261400, 1289261700, 1289262000, 1289262300, 1289262600,
1289262900,
1289263200, 1289263500, 1289263800, 1289264100, 1289264400,
1289264700,
1289265000, 1289265300, 1289265600, 1289265900, 1289266200,
1289266500,
1289266800, 1289267100, 1289267400, 1289267700, 1289268000,
1289268300,
1289268600, 1289268900, 1289269200, 1289269500, 1289269800,
1289270100,
1289270400, 1289270700, 1289271000, 1289271300, 1289271600,
1289271900,
1289272200, 1289272500, 1289272800, 1289273100, 1289273400,
1289273700,
1289274000, 1289274300, 1289274600, 1289274900, 1289275200,
1289275500,
1289275800, 1289276100, 1289276400, 1289276700, 1289277000,
1289277300,
1289277600, 1289277900, 1289278200, 1289278500, 1289278800,
1289279100,
1289279400, 1289279700, 1289280000, 1289280300, 1289280600,
1289280900,
1289281200, 1289281500, 1289281800, 1289282100, 1289282400,
1289282700,
1289283000, 1289283300, 1289283600, 1289283900, 1289284200,
1289284500,
1289284800, 1289285100, 1289285400, 1289285700, 1289286000,
1289286300,
1289286600, 1289286900, 1289287200, 1289287500, 1289287800,
1289288100,
1289288400, 1289288700, 1289289000, 1289289300, 1289289600,
1289289900,
1289290200, 1289290500, 1289290800, 1289291100, 1289291400,
1289291700,
1289292000, 1289292300, 1289292600, 1289292900, 1289293200,
1289293500,
1289293800, 1289294100, 1289294400, 1289294700, 1289295000,
1289295300,
1289295600, 1289295900, 1289296200, 1289296500, 1289296800,
1289297100,
1289297400, 1289297700, 1289298000, 1289298300, 1289298600,
1289298900,
1289299200, 1289299500, 1289299800, 1289300100, 1289300400,
1289300700,
1289301000, 1289301300, 1289301600, 1289301900, 1289302200,
1289302500,
1289302800, 1289303100, 1289303400, 1289303700, 1289304000,
1289304300,
1289304600, 1289304900, 1289305200, 1289305500, 1289305800,
1289306100,
1289306400, 1289306700, 1289307000, 1289307300, 1289307600,
1289307900,
1289308200, 1289308500, 1289308800, 1289309100, 1289309400,
1289309700,
1289310000, 1289310300, 1289310600, 1289310900, 1289311200,
1289311500,
1289311800, 1289312100, 1289312400, 1289312700, 1289313000,
1289313300,
1289313600, 1289313900, 1289314200, 1289314500, 1289314800,
1289315100,
1289315400, 1289315700, 1289316000, 1289316300, 1289316600,
1289316900,
1289317200, 1289317500, 1289317800, 1289318100, 1289318400,
1289318700,
1289319000, 1289319300, 1289319600, 1289319900, 1289320200,
1289320500,
1289320800, 1289321100, 1289321400, 1289321700, 1289322000,
1289322300,
1289322600, 1289322900, 1289323200, 1289323500, 1289323800,
1289324100,
1289324400, 1289324700, 1289325000, 1289325300, 1289325600,
1289325900,
1289326200, 1289326500, 1289326800, 1289327100, 1289327400,
1289327700,
1289328000, 1289328300, 1289328600, 1289328900, 1289329200,
1289329500,
1289329800, 1289330100, 1289330400, 1289330700, 1289331000,
1289331300,
1289331600, 1289331900, 1289332200, 1289332500, 1289332800,
1289333100,
1289333400, 1289333700, 1289334000, 1289334300, 1289334600,
1289334900,
1289335200, 1289335500, 1289335800, 1289336100, 1289336400,
1289336700,
1289337000, 1289337300, 1289337600, 1289337900, 1289338200,
1289338500,
1289338800, 1289339100, 1289339400, 1289339700, 1289340000,
1289340300,
1289340600, 1289340900, 1289341200, 1289341500, 1289341800,
1289342100,
1289342400, 1289342700, 1289343000, 1289343300, 1289343600,
1289343900,
1289344200, 1289344500, 1289344800, 1289345100, 1289345400,
1289345700,
1289346000, 1289346300, 1289346600, 1289346900, 1289347200,
1289347500,
1289347800, 1289348100, 1289348400, 1289348700, 1289349000,
1289349300,
1289349600, 1289349900, 1289350200, 1289350500, 1289350800,
1289351100,
1289351400, 1289351700, 1289352000, 1289352300, 1289352600,
1289352900,
1289353200, 1289353500, 1289353800, 1289354100, 1289354400,
1289354700,
1289355000, 1289355300, 1289355600, 1289355900, 1289356200,
1289356500,
1289356800, 1289357100, 1289357400, 1289357700, 1289358000,
1289358300,
1289358600, 1289358900, 1289359200, 1289359500, 1289359800,
1289360100,
1289360400, 1289360700, 1289361000, 1289361300, 1289361600,
1289361900,
1289362200, 1289362500, 1289362800, 1289363100, 1289363400,
1289363700,
1289364000, 1289364300, 1289364600, 1289364900, 1289365200,
1289365500,
1289365800, 1289366100, 1289366400, 1289366700, 1289367000,
1289367300,
1289367600, 1289367900, 1289368200, 1289368500, 1289368800,
1289369100,
1289369400, 1289369700, 1289370000, 1289370300, 1289370600,
1289370900,
1289371200, 1289371500, 1289371800, 1289372100, 1289372400,
1289372700,
1289373000, 1289373300, 1289373600, 1289373900, 1289374200,
1289374500,
1289374800, 1289375100, 1289375400, 1289375700, 1289376000,
1289376300,
1289376600, 1289376900, 1289377200, 1289377500, 1289377800,
1289378100,
1289378400, 1289378700, 1289379000, 1289379300, 1289379600,
1289379900,
1289380200, 1289380500, 1289380800, 1289381100, 1289381400,
1289381700,
1289382000, 1289382300, 1289382600, 1289382900, 1289383200,
1289383500,
1289383800, 1289384100, 1289384400, 1289384700, 1289385000,
1289385300,
1289385600, 1289385900, 1289386200, 1289386500, 1289386800,
1289387100,
1289387400, 1289387700, 1289388000, 1289388300, 1289388600,
1289388900,
1289389200, 1289389500, 1289389800, 1289390100, 1289390400,
1289390700,
1289391000, 1289391300, 1289391600, 1289391900, 1289392200,
1289392500,
1289392800, 1289393100, 1289393400, 1289393700, 1289394000,
1289394300,
1289394600, 1289394900, 1289395200, 1289395500, 1289395800,
1289396100,
1289396400, 1289396700, 1289397000, 1289397300, 1289397600,
1289397900,
1289398200, 1289398500, 1289398800, 1289399100, 1289399400,
1289399700,
1289400000, 1289400300, 1289400600, 1289400900, 1289401200,
1289401500,
1289401800, 1289402100, 1289402400, 1289402700, 1289403000,
1289403300,
1289403600, 1289403900, 1289404200, 1289404500, 1289404800,
1289405100,
1289405400, 1289405700, 1289406000, 1289406300, 1289406600,
1289406900,
1289407200, 1289407500, 1289407800, 1289408100, 1289408400,
1289408700,
1289409000, 1289409300, 1289409600, 1289409900, 1289410200,
1289410500,
1289410800, 1289411100, 1289411400, 1289411700, 1289412000,
1289412300,
1289412600, 1289412900, 1289413200, 1289413500, 1289413800,
1289414100,
1289414400, 1289414700, 1289415000, 1289415300, 1289415600,
1289415900,
1289416200, 1289416500, 1289416800, 1289417100, 1289417400,
1289417700,
1289418000, 1289418300, 1289418600, 1289418900, 1289419200,
1289419500,
1289419800, 1289420100, 1289420400, 1289420700, 1289421000,
1289421300,
1289421600, 1289421900, 1289422200, 1289422500, 1289422800,
1289423100,
1289423400, 1289423700, 1289424000, 1289424300, 1289424600,
1289424900,
1289425200, 1289425500, 1289425800, 1289426100, 1289426400,
1289426700,
1289427000, 1289427300, 1289427600, 1289427900, 1289428200,
1289428500,
1289428800, 1289429100, 1289429400, 1289429700, 1289430000,
1289430300,
1289430600, 1289430900, 1289431200, 1289431500, 1289431800,
1289432100,
1289432400, 1289432700, 1289433000, 1289433300, 1289433600,
1289433900,
1289434200, 1289434500, 1289434800, 1289435100, 1289435400,
1289435700,
1289436000, 1289436300, 1289436600, 1289436900, 1289437200,
1289437500,
1289437800, 1289438100, 1289438400, 1289438700, 1289439000,
1289439300,
1289439600, 1289439900, 1289440200, 1289440500, 1289440800,
1289441100,
1289441400, 1289441700, 1289442000, 1289442300, 1289442600,
1289442900,
1289443200, 1289443500, 1289443800, 1289444100, 1289444400,
1289444700,
1289445000, 1289445300, 1289445600, 1289445900, 1289446200,
1289446500,
1289446800, 1289447100, 1289447400, 1289447700, 1289448000,
1289448300,
1289448600, 1289448900, 1289449200, 1289449500, 1289449800,
1289450100,
1289450400, 1289450700, 1289451000, 1289451300, 1289451600,
1289451900,
1289452200, 1289452500, 1289452800, 1289453100, 1289453400,
1289453700,
1289454000, 1289454300, 1289454600, 1289454900, 1289455200,
1289455500,
1289455800, 1289456100, 1289456400, 1289456700, 1289457000,
1289457300,
1289457600, 1289457900, 1289458200, 1289458500, 1289458800,
1289459100,
1289459400, 1289459700, 1289460000, 1289460300, 1289460600,
1289460900,
1289461200, 1289461500, 1289461800, 1289462100), class = c("POSIXct",
"POSIXt"), tzone = "")), .Names = c("Turbidity", "ReadingDateTime"
), row.names = c(8883L, 8885L, 8887L, 8889L, 8891L, 8893L, 8895L,
8897L, 8899L, 8901L, 8903L, 8809L, 8811L, 8813L, 8815L, 8817L,
8819L, 8821L, 8823L, 8825L, 8827L, 8829L, 8831L, 8905L, 8907L,
8909L, 8911L, 8913L, 8915L, 8917L, 8919L, 8921L, 8923L, 8925L,
8927L, 8929L, 8931L, 8933L, 8935L, 8937L, 8939L, 8941L, 8943L,
8945L, 8947L, 8949L, 8951L, 8953L, 8955L, 8957L, 8959L, 8961L,
8963L, 8965L, 8967L, 8969L, 8971L, 8973L, 8975L, 8977L, 8979L,
8981L, 8983L, 8985L, 8987L, 8989L, 8991L, 8993L, 8995L, 8997L,
8999L, 9001L, 9003L, 9005L, 9007L, 9009L, 9011L, 9013L, 9015L,
9017L, 9019L, 9021L, 9023L, 9025L, 9027L, 9029L, 9031L, 9033L,
9035L, 9037L, 9039L, 9041L, 9043L, 9045L, 9047L, 9049L, 9051L,
9053L, 9055L, 9057L, 9059L, 9061L, 9063L, 9065L, 9067L, 9069L,
9071L, 9073L, 9075L, 9077L, 9079L, 9081L, 9083L, 9085L, 9087L,
9089L, 9091L, 9093L, 9095L, 8833L, 8835L, 8837L, 8839L, 8841L,
8843L, 8845L, 8847L, 8849L, 8851L, 8853L, 8855L, 8857L, 8859L,
8861L, 8863L, 8865L, 8867L, 8869L, 8871L, 8873L, 8875L, 8877L,
8879L, 8882L, 8884L, 8886L, 8888L, 8890L, 8892L, 8894L, 8896L,
8898L, 8900L, 8902L, 8904L, 8810L, 8812L, 8814L, 8816L, 8818L,
8820L, 8822L, 8824L, 8826L, 8828L, 8830L, 8832L, 8906L, 8908L,
8910L, 8912L, 8914L, 8916L, 8918L, 8920L, 8922L, 8924L, 8926L,
8928L, 8930L, 8932L, 8934L, 8936L, 8938L, 8940L, 8942L, 8944L,
8946L, 8948L, 8950L, 8952L, 8954L, 8956L, 8958L, 8960L, 8962L,
8964L, 8966L, 8968L, 8970L, 8972L, 8974L, 8976L, 8978L, 8980L,
8982L, 8984L, 8986L, 8988L, 8990L, 8992L, 8994L, 8996L, 8998L,
9000L, 9002L, 9004L, 9006L, 9008L, 9010L, 9012L, 9014L, 9016L,
9018L, 9020L, 9022L, 9024L, 9026L, 9028L, 9030L, 9032L, 9034L,
9036L, 9038L, 9040L, 9042L, 9044L, 9046L, 9048L, 9050L, 9052L,
9054L, 9056L, 9058L, 9060L, 9062L, 9064L, 9066L, 9068L, 9070L,
9072L, 9074L, 9076L, 9078L, 9080L, 9082L, 9084L, 9086L, 9088L,
9090L, 9092L, 9094L, 9096L, 8834L, 8836L, 8838L, 8840L, 8842L,
8844L, 8846L, 8848L, 8850L, 8852L, 8854L, 8856L, 8858L, 8860L,
8862L, 8864L, 8866L, 8868L, 8870L, 8872L, 8874L, 8876L, 8878L,
8880L, 9169L, 9171L, 9173L, 9175L, 9177L, 9179L, 9181L, 9183L,
9185L, 9187L, 9189L, 9191L, 9097L, 9099L, 9101L, 9103L, 9105L,
9107L, 9109L, 9111L, 9113L, 9115L, 9117L, 9119L, 9193L, 9195L,
9197L, 9199L, 9201L, 9203L, 9205L, 9207L, 9209L, 9211L, 9213L,
9215L, 9217L, 9219L, 9221L, 9223L, 9225L, 9227L, 9229L, 9231L,
9233L, 9235L, 9237L, 9239L, 9241L, 9243L, 9245L, 9247L, 9249L,
9251L, 9253L, 9255L, 9257L, 9259L, 9261L, 9263L, 9265L, 9267L,
9269L, 9271L, 9273L, 9275L, 9277L, 9279L, 9281L, 9283L, 9285L,
9287L, 9289L, 9291L, 9293L, 9295L, 9297L, 9299L, 9301L, 9303L,
9305L, 9307L, 9309L, 9311L, 9313L, 9315L, 9317L, 9319L, 9321L,
9323L, 9325L, 9327L, 9329L, 9331L, 9333L, 9335L, 9337L, 9339L,
9341L, 9343L, 9345L, 9347L, 9349L, 9351L, 9353L, 9355L, 9357L,
9359L, 9361L, 9363L, 9365L, 9367L, 9369L, 9371L, 9373L, 9375L,
9377L, 9379L, 9381L, 9383L, 9121L, 9123L, 9125L, 9127L, 9129L,
9131L, 9133L, 9135L, 9137L, 9139L, 9141L, 9143L, 9145L, 9147L,
9149L, 9151L, 9153L, 9155L, 9157L, 9159L, 9161L, 9163L, 9165L,
9167L, 9170L, 9172L, 9174L, 9176L, 9178L, 9180L, 9182L, 9184L,
9186L, 9188L, 9190L, 9192L, 9098L, 9100L, 9102L, 9104L, 9106L,
9108L, 9110L, 9112L, 9114L, 9116L, 9118L, 9120L, 9194L, 9196L,
9198L, 9200L, 9202L, 9204L, 9206L, 9208L, 9210L, 9212L, 9214L,
9216L, 9218L, 9220L, 9222L, 9224L, 9226L, 9228L, 9230L, 9232L,
9234L, 9236L, 9238L, 9240L, 9242L, 9244L, 9246L, 9248L, 9250L,
9252L, 9254L, 9256L, 9258L, 9260L, 9262L, 9264L, 9266L, 9268L,
9270L, 9272L, 9274L, 9276L, 9278L, 9280L, 9282L, 9284L, 9286L,
9288L, 9290L, 9292L, 9294L, 9296L, 9298L, 9300L, 9302L, 9304L,
9306L, 9308L, 9310L, 9312L, 9314L, 9316L, 9318L, 9320L, 9322L,
9324L, 9326L, 9328L, 9330L, 9332L, 9334L, 9336L, 9338L, 9340L,
9342L, 9344L, 9346L, 9348L, 9350L, 9352L, 9354L, 9356L, 9358L,
9360L, 9362L, 9364L, 9366L, 9368L, 9370L, 9372L, 9374L, 9376L,
9378L, 9380L, 9382L, 9384L, 9122L, 9124L, 9126L, 9128L, 9130L,
9132L, 9134L, 9136L, 9138L, 9140L, 9142L, 9144L, 9146L, 9148L,
9150L, 9152L, 9154L, 9156L, 9158L, 9160L, 9162L, 9164L, 9166L,
9168L, 9457L, 9459L, 9461L, 9463L, 9465L, 9467L, 9469L, 9471L,
9473L, 9475L, 9477L, 9479L, 9385L, 9387L, 9389L, 9391L, 9393L,
9395L, 9397L, 9399L, 9401L, 9403L, 9405L, 9407L, 9481L, 9483L,
9485L, 9487L, 9489L, 9491L, 9493L, 9495L, 9497L, 9499L, 9501L,
9503L, 9505L, 9507L, 9509L, 9511L, 9513L, 9515L, 9517L, 9519L,
9521L, 9523L, 9525L, 9527L, 9529L, 9531L, 9533L, 9535L, 9537L,
9539L, 9541L, 9543L, 9545L, 9547L, 9549L, 9551L, 9553L, 9555L,
9557L, 9559L, 9561L, 9563L, 9565L, 9567L, 9569L, 9571L, 9573L,
9575L, 9577L, 9579L, 9581L, 9583L, 9585L, 9587L, 9589L, 9591L,
9593L, 9595L, 9597L, 9599L, 9601L, 9603L, 9605L, 9607L, 9609L,
9611L, 9613L, 9615L, 9617L, 9619L, 9621L, 9623L, 9625L, 9627L,
9629L, 9631L, 9633L, 9635L, 9637L, 9639L, 9641L, 9643L, 9645L,
9647L, 9649L, 9651L, 9653L, 9655L, 9657L, 9659L, 9661L, 9663L,
9665L, 9667L, 9669L, 9671L, 9409L, 9411L, 9413L, 9415L, 9417L,
9419L, 9421L, 9423L, 9425L, 9427L, 9429L, 9431L, 9433L, 9435L,
9437L, 9439L, 9441L, 9443L, 9445L, 9447L, 9449L, 9451L, 9453L,
9455L, 9458L, 9460L, 9462L, 9464L, 9466L, 9468L, 9470L, 9472L,
9474L, 9476L, 9478L, 9480L, 9386L, 9388L, 9390L, 9392L, 9394L,
9396L, 9398L, 9400L, 9402L, 9404L, 9406L, 9408L, 9482L, 9484L,
9486L, 9488L, 9490L, 9492L, 9494L, 9496L, 9498L, 9500L, 9502L,
9504L, 9506L, 9508L, 9510L, 9512L, 9514L, 9516L, 9518L, 9520L,
9522L, 9524L, 9526L, 9528L, 9530L, 9532L, 9534L, 9536L, 9538L,
9540L, 9542L, 9544L, 9546L, 9548L, 9550L, 9552L, 9554L, 9556L,
9558L, 9560L, 9562L, 9564L, 9566L, 9568L, 9570L, 9572L, 9574L,
9576L, 9578L, 9580L, 9582L, 9584L, 9586L, 9588L, 9590L, 9592L,
9594L, 9596L, 9598L, 9600L, 9602L, 9604L, 9606L, 9608L, 9610L,
9612L, 9614L, 9616L, 9618L, 9620L, 9622L, 9624L, 9626L, 9628L,
9630L, 9632L, 9634L, 9636L, 9638L, 9640L, 9642L, 9644L, 9646L,
9648L, 9650L, 9652L, 9654L, 9656L, 9658L, 9660L, 9662L, 9664L,
9666L, 9668L, 9670L, 9672L, 9410L, 9412L, 9414L, 9416L, 9418L,
9420L, 9422L, 9424L, 9426L, 9428L, 9430L, 9432L, 9434L, 9436L,
9438L, 9440L, 9442L, 9444L, 9446L, 9448L, 9450L, 9452L, 9454L,
9456L, 9745L, 9747L, 9749L, 9751L, 9753L, 9755L, 9757L, 9759L,
9761L, 9763L, 9765L, 9767L, 9673L, 9675L, 9677L, 9679L, 9681L,
9683L, 9685L, 9687L, 9689L, 9691L, 9693L, 9695L, 9769L, 9771L,
9773L, 9775L, 9777L, 9779L, 9781L, 9783L, 9785L, 9787L, 9789L,
9791L, 9793L, 9795L, 9797L, 9799L, 9801L, 9803L, 9805L, 9807L,
9809L, 9811L, 9813L, 9815L, 9817L, 9819L, 9821L, 9823L, 9825L,
9827L, 9829L, 9831L, 9833L, 9835L, 9837L, 9839L, 9841L, 9843L,
9845L, 9847L, 9849L, 9851L, 9853L, 9855L, 9857L, 9859L, 9861L,
9863L, 9865L, 9867L, 9869L, 9871L, 9873L, 9875L, 9877L, 9879L,
9881L, 9883L, 9885L, 9887L, 9889L, 9891L, 9893L, 9895L, 9897L,
9899L, 9901L, 9903L, 9905L, 9907L, 9909L, 9911L, 9913L, 9915L,
9917L, 9919L, 9921L, 9923L, 9925L, 9927L, 9929L, 9931L, 9933L,
9935L, 9937L, 9939L, 9941L, 9943L, 9945L, 9947L, 9949L, 9951L,
9953L, 9955L, 9957L, 9959L, 9697L, 9699L, 9701L, 9703L, 9705L,
9707L, 9709L, 9711L, 9713L, 9715L, 9717L, 9719L, 9721L, 9723L,
9725L, 9727L, 9729L, 9731L, 9733L, 9735L, 9737L, 9739L, 9741L,
9743L, 9746L, 9748L, 9750L, 9752L, 9754L, 9756L, 9758L, 9760L,
9762L, 9764L, 9766L, 9768L, 9674L, 9676L, 9678L, 9680L, 9682L,
9684L, 9686L, 9688L, 9690L, 9692L, 9694L, 9696L, 9770L, 9772L,
9774L, 9776L, 9778L, 9780L, 9782L, 9784L, 9786L, 9788L, 9790L,
9792L, 9794L, 9796L, 9798L, 9800L, 9802L, 9804L, 9806L, 9808L,
9810L, 9812L, 9814L, 9816L, 9818L, 9820L, 9822L, 9824L, 9826L,
9828L, 9830L, 9832L, 9834L, 9836L, 9838L, 9840L, 9842L, 9844L,
9846L, 9848L, 9850L, 9852L, 9854L, 9856L, 9858L, 9860L, 9862L,
9864L, 9866L, 9868L, 9870L, 9872L, 9874L, 9876L, 9878L, 9880L,
9882L, 9884L, 9886L, 9888L, 9890L, 9892L, 9894L, 9896L, 9898L,
9900L, 9902L, 9904L, 9906L, 9908L, 9910L, 9912L, 9914L, 9916L,
9918L, 9920L, 9922L, 9924L, 9926L, 9928L, 9930L, 9932L, 9934L,
9936L, 9938L, 9940L, 9942L, 9944L, 9946L, 9948L, 9950L, 9952L,
9954L, 9956L, 9958L, 9960L, 9698L, 9700L, 9702L, 9704L, 9706L,
9708L, 9710L, 9712L, 9714L, 9716L, 9718L, 9720L, 9722L, 9724L,
9726L, 9728L, 9730L, 9732L, 9734L, 9736L, 9738L, 9740L, 9742L,
9744L, 10033L, 10035L, 10037L, 10039L, 10041L, 10043L, 10045L,
10047L, 10049L, 10051L, 10053L, 10055L, 9961L, 9963L, 9965L,
9967L, 9969L, 9971L, 9973L, 9975L, 9977L, 9979L, 9981L, 9983L,
10057L, 10059L, 10061L, 10063L, 10065L, 10067L, 10069L, 10071L,
10073L, 10075L, 10077L, 10079L, 10081L, 10083L, 10085L, 10087L,
10089L, 10091L, 10093L, 10095L, 10097L, 10099L, 10101L, 10103L,
10105L, 10107L, 10109L, 10111L, 10113L, 10115L, 10117L, 10119L,
10121L, 10123L, 10125L, 10127L, 10129L, 10131L, 10133L, 10135L,
10137L, 10139L, 10141L, 10143L, 10145L, 10147L, 10149L, 10151L,
10153L, 10155L, 10157L, 10159L, 10161L, 10163L, 10165L, 10167L,
10169L, 10171L, 10173L, 10175L, 10177L, 10179L, 10181L, 10183L,
10185L, 10187L, 10189L, 10191L, 10193L, 10195L, 10197L, 10199L,
10201L, 10203L, 10205L, 10207L, 10209L, 10211L, 10213L, 10215L,
10217L, 10219L, 10221L, 10223L, 10225L, 10227L, 10229L, 10231L,
10233L, 10235L, 10237L, 10239L, 10241L, 10243L, 10245L, 10247L,
9985L, 9987L, 9989L, 9991L, 9993L, 9995L, 9997L, 9999L, 10001L,
10003L, 10005L, 10007L, 10009L, 10011L, 10013L, 10015L, 10017L,
10019L, 10021L, 10023L, 10025L, 10027L, 10029L, 10031L, 10034L,
10036L, 10038L, 10040L, 10042L, 10044L, 10046L, 10048L, 10050L,
10052L, 10054L, 10056L, 9962L, 9964L, 9966L, 9968L, 9970L, 9972L,
9974L, 9976L, 9978L, 9980L, 9982L, 9984L, 10058L, 10060L, 10062L,
10064L, 10066L, 10068L, 10070L, 10072L, 10074L, 10076L, 10078L,
10080L, 10082L, 10084L, 10086L, 10088L, 10090L, 10092L, 10094L,
10096L, 10098L, 10100L, 10102L, 10104L, 10106L, 10108L, 10110L,
10112L, 10114L, 10116L, 10118L, 10120L, 10122L, 10124L, 10126L,
10128L, 10130L, 10132L, 10134L, 10136L, 10138L, 10140L, 10142L,
10144L, 10146L, 10148L, 10150L, 10152L, 10154L, 10156L, 10158L,
10160L, 10162L, 10164L, 10166L, 10168L, 10170L, 10172L, 10174L,
10176L, 10178L, 10180L, 10182L, 10184L, 10186L, 10188L, 10190L,
10192L, 10194L, 10196L, 10198L, 10200L, 10202L, 10204L, 10206L,
10208L, 10210L, 10212L, 10214L, 10216L, 10218L, 10220L, 10222L,
10224L, 10226L, 10228L, 10230L, 10232L, 10234L, 10236L, 10238L,
10240L, 10242L, 10244L, 10246L, 10248L, 9986L, 9988L, 9990L,
9992L, 9994L, 9996L, 9998L, 10000L, 10002L, 10004L, 10006L, 10008L,
10010L, 10012L, 10014L, 10016L, 10018L, 10020L, 10022L, 10024L,
10026L, 10028L, 10030L, 10032L, 3507L, 3509L, 3511L, 3513L, 3515L,
3517L, 3519L, 3521L, 3523L, 3525L, 3527L, 3529L, 3435L, 3437L,
3439L, 3441L, 3443L, 3445L, 3447L, 3449L, 3451L, 3453L, 3455L,
3457L, 3531L, 3533L, 3535L, 3537L, 3539L, 3541L, 3543L, 3545L,
3547L, 3549L, 3551L, 3553L, 3555L, 3557L, 3559L, 3561L, 3563L,
3565L, 3567L, 3569L, 3571L, 3573L, 3575L, 3577L, 3579L, 3581L,
3583L, 3585L, 3587L, 3589L, 3591L, 3593L, 3595L, 3597L, 3599L,
3601L, 3603L, 3605L, 3607L, 3609L, 3611L, 3613L, 3615L, 3617L,
3619L, 3621L, 3623L, 3625L, 3627L, 3629L, 3631L, 3633L, 3635L,
3637L, 3639L, 3641L, 3643L, 3645L, 3647L, 3649L, 3651L, 3653L,
3655L, 3657L, 3659L, 3661L, 3663L, 3665L, 3667L, 3669L, 3671L,
3673L, 3675L, 3677L, 3679L, 3681L, 3683L, 3685L, 3687L, 3689L,
3691L, 3693L, 3695L, 3697L, 3699L, 3701L, 3703L, 3705L, 3707L,
3709L, 3711L, 3713L, 3715L, 3717L, 3719L, 3721L, 3459L, 3461L,
3463L, 3465L, 3467L, 3469L, 3471L, 3473L, 3475L, 3477L, 3479L,
3481L, 3483L, 3485L, 3487L, 3489L, 3491L, 3493L, 3495L, 3497L,
3499L, 3501L, 3503L, 3505L, 3508L, 3510L, 3512L, 3514L, 3516L,
3518L, 3520L, 3522L, 3524L, 3526L, 3528L, 3530L, 3436L, 3438L,
3440L, 3442L, 3444L, 3446L, 3448L, 3450L, 3452L, 3454L, 3456L,
3458L, 3532L, 3534L, 3536L, 3538L, 3540L, 3542L, 3544L, 3546L,
3548L, 3550L, 3552L, 3554L, 3556L, 3558L, 3560L, 3562L, 3564L,
3566L, 3568L, 3570L, 3572L, 3574L, 3576L, 3578L, 3580L, 3582L,
3584L, 3586L, 3588L, 3590L, 3592L, 3594L, 3596L, 3598L, 3600L,
3602L, 3604L, 3606L, 3608L, 3610L, 3612L, 3614L, 3616L, 3618L,
3620L, 3622L, 3624L, 3626L, 3628L, 3630L, 3632L, 3634L, 3636L,
3638L, 3640L, 3642L, 3644L, 3646L, 3648L, 3650L, 3652L, 3654L,
3656L, 3658L, 3660L, 3662L, 3664L, 3666L, 3668L, 3670L, 3672L,
3674L, 3676L, 3678L, 3680L, 3682L, 3684L, 3686L, 3688L, 3690L,
3692L, 3694L, 3696L, 3698L, 3700L, 3702L, 3704L, 3706L, 3708L,
3710L, 3712L, 3714L, 3716L, 3718L, 3720L, 3722L, 3460L, 3462L,
3464L, 3466L, 3468L, 3470L, 3472L, 3474L, 3476L, 3478L, 3480L,
3482L, 3484L, 3486L, 3488L, 3490L, 3492L, 3494L, 3496L, 3498L,
3500L, 3502L, 3504L, 3506L), class = "data.frame")

gp<-ggplot()+ opts(axis.title.x=theme_blank()) +
scale_x_datetime(limits = c(as.POSIXct("2010-11-06"),
as.POSIXct("2010-11-10")), minor="1 day")

gpturb<-gp + geom_line(data=dat,aes(x=ReadingDateTime,y=Turbidity),
color="black")+ ylab("Turbidity (NTU)") +
opts(axis.title.y = theme_text(size=12, angle=90))

windows()

print(gpturb)

thanks,
sarah.

On Jan 31, 11:18 am, Scott Chamberlain <myrmecocys...@gmail.com>
wrote:
> > More options:http://groups.google.com/group/ggplot2- Hide quoted text -
>
> - Show quoted text -

Mckinnon, Sarah

unread,
Jan 31, 2011, 4:00:38 PM1/31/11
to Scott Chamberlain, MakoSwift, ggplot2

Here’s my reproducible example.  Sorry it’s so long:

 

rm(list=ls())

graphics.off()

 

library(ggplot2)

theme_set(theme_bw())

gp<-ggplot()+ opts(axis.title.x=theme_blank()) + scale_x_datetime(limits = c(as.POSIXct("2010-11-06"), as.POSIXct("2010-11-10")), minor="1 day")

 

gpturb<-gp + geom_line(data=dat,aes(x=ReadingDateTime,y=Turbidity), color="black")+ ylab("Turbidity (NTU)") +

  opts(axis.title.y = theme_text(size=12, angle=90))

 

windows()

 

print(gpturb)

Brandon Hurr

unread,
Jan 31, 2011, 4:26:36 PM1/31/11
to Mckinnon, Sarah, Scott Chamberlain, MakoSwift, ggplot2
Sarah, 

I don't get dual ticks... 

> ggsave("nodualticks.png")
Saving 6.42" x 4.71" image
Warning message:
Removed 586 rows containing missing values (geom_path). 
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggplot2_0.8.9 proto_0.3-8   reshape_0.8.3 plyr_1.2.1   
> 
nodualticks.png

Brandon Hurr

unread,
Jan 31, 2011, 4:41:26 PM1/31/11
to Mckinnon, Sarah, Scott Chamberlain, MakoSwift, ggplot2
Run sessionInfo() and post the output here. 

If it's not packages it could be something to do with Windows/Mac... (totally conjecture)

B


On Mon, Jan 31, 2011 at 21:33, Mckinnon, Sarah <smck...@golder.com> wrote:

Very strange.  My graph looks exactly like yours, with two Nov 07, and with the blips in the line corresponding to different dates…

 

Not sure where to go from here.

Mckinnon, Sarah

unread,
Jan 31, 2011, 4:33:11 PM1/31/11
to Brandon Hurr, Scott Chamberlain, MakoSwift, ggplot2

Very strange.  My graph looks exactly like yours, with two Nov 07, and with the blips in the line corresponding to different dates…

 

Not sure where to go from here.

 

 

 

From: Brandon Hurr [mailto:brando...@gmail.com]

Sent: Monday, January 31, 2011 1:27 PM
To: Mckinnon, Sarah

dual ticks.png

MakoSwift

unread,
Jan 31, 2011, 4:43:23 PM1/31/11
to ggplot2
R version 2.12.0 (2010-10-15)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
States.1252 LC_MONETARY=English_United States.1252
LC_NUMERIC=C LC_TIME=English_United States.
1252

attached base packages:
[1] grid stats graphics grDevices utils datasets
methods base

other attached packages:
[1] ggplot2_0.8.9 proto_0.3-8 reshape_0.8.3 plyr_1.4
RODBC_1.3-2

loaded via a namespace (and not attached):
[1] tools_2.12.0

On Jan 31, 1:41 pm, Brandon Hurr <brandon.h...@gmail.com> wrote:
> Run sessionInfo() and post the output here.
>
> If it's not packages it could be something to do with Windows/Mac...
> (totally conjecture)
>
> B
>
>
>
> On Mon, Jan 31, 2011 at 21:33, Mckinnon, Sarah <smckin...@golder.com> wrote:
> > Very strange.  My graph looks exactly like yours, with two Nov 07, and with
> > the blips in the line corresponding to different dates…
>
> > Not sure where to go from here.
>
> > *From:* Brandon Hurr [mailto:brandon.h...@gmail.com]
> > *Sent:* Monday, January 31, 2011 1:27 PM
> > *To:* Mckinnon, Sarah
> > *Cc:* Scott Chamberlain; MakoSwift; ggplot2
> > *Subject:* Re: scale_x_datetime showing two ticks for the same day even
> > when major="1 day"
>
> > Sarah,
>
> > I don't get dual ticks...
>
> > > ggsave("nodualticks.png")
>
> > Saving 6.42" x 4.71" image
>
> > Warning message:
>
> > Removed 586 rows containing missing values (geom_path).
>
> > > sessionInfo()
>
> > R version 2.12.0 (2010-10-15)
>
> > Platform: i386-apple-darwin9.8.0/i386 (32-bit)
>
> > locale:
>
> > [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>
> > attached base packages:
>
> > [1] grid      stats     graphics  grDevices utils     datasets  methods
> > base
>
> > other attached packages:
>
> > [1] ggplot2_0.8.9 proto_0.3-8   reshape_0.8.3 plyr_1.2.1
>
> > On Mon, Jan 31, 2011 at 21:00, Mckinnon, Sarah <smckin...@golder.com>
> ...
>
> read more »- Hide quoted text -

Brandon Hurr

unread,
Jan 31, 2011, 5:07:43 PM1/31/11
to MakoSwift, ggplot2
Sarah, 

I have to admit, I'm at a bit of a loss here. Seems like it is probably something to do with your R configuration and I don't have a windows machine to try the code on. Can you try plotting the data using something other than ggplot2?  If the error persists I would google the hell out of posix time issues and as a last resort R-help (GOD HELP US ALL!). 

Brandon

Ista Zahn

unread,
Jan 31, 2011, 5:41:06 PM1/31/11
to Brandon Hurr, MakoSwift, ggplot2
I confirm the same problem Sarah reported on my machine

> sessionInfo()
R version 2.11.1 (2010-05-31)
i386-pc-mingw32

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] grid tools stats graphics grDevices utils datasets
[8] methods base

other attached packages:
[1] ggplot2_0.8.9 proto_0.3-8 reshape_0.8.3 plyr_1.2.1
[5] pgfSweave_1.1.3 formatR_0.1-9 highlight_0.2-2 Rcpp_0.8.6
[9] parser_0.0-10 codetools_0.2-6 getopt_1.15 cacheSweave_0.4-4
[13] tikzDevice_0.5.3 stashR_0.3-3 filehash_2.1-1

loaded via a namespace (and not attached):

[1] digest_0.4.2
>

> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>

--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org

fernando

unread,
Jan 31, 2011, 5:41:25 PM1/31/11
to Brandon Hurr, MakoSwift, ggplot2

Hi all,

 

I have no idea of what can be going on, but I obtained the expected graph with three different Windows distributions (and two versions of  ggplot2) [Murphy’s law; all of them different from yours … so I’m not sure if it is an issue related to your current installation]

 

Hope this helps,

fernando

 

R version 2.12.1 (2010-12-16)

Platform: i386-pc-mingw32/i386 (32-bit)

 

locale:

[1] LC_COLLATE=Spanish_Spain.1252  LC_CTYPE=Spanish_Spain.1252  

[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C                 

[5] LC_TIME=Spanish_Spain.1252   

 

attached base packages:

[1] grid      stats     graphics  grDevices utils     datasets  methods 

[8] base    

 

other attached packages:

[1] ggplot2_0.8.9 proto_0.3-8   reshape_0.8.4 plyr_1.4    

 

loaded via a namespace (and not attached):

[1] tools_2.12.1

 

######################################################

 

R version 2.11.1 (2010-05-31)

x86_64-pc-mingw32

 

locale:

[1] LC_COLLATE=Spanish_Spain.1252  LC_CTYPE=Spanish_Spain.1252  

[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C                 

[5] LC_TIME=Spanish_Spain.1252   

 

attached base packages:

[1] grid      stats     graphics  grDevices utils     datasets  methods 

[8] base    

 

other attached packages:

[1] ggplot2_0.8.8 proto_0.3-8   reshape_0.8.3 plyr_1.2.1

 

######################################################

 

R version 2.12.1 (2010-12-16)

Platform: x86_64-pc-mingw32/x64 (64-bit)

 

locale:

[1] LC_COLLATE=Spanish_Spain.1252  LC_CTYPE=Spanish_Spain.1252  

[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C                 

[5] LC_TIME=Spanish_Spain.1252   

 

attached base packages:

[1] grid      stats     graphics  grDevices utils     datasets  methods 

[8] base    

 

other attached packages:

[1] ggplot2_0.8.9 proto_0.3-8   reshape_0.8.4 plyr_1.4  

--

07-nov.png

fernando

unread,
Feb 1, 2011, 1:03:23 AM2/1/11
to Mckinnon, Sarah, Brandon Hurr, MakoSwift, ggplot2

Hi Sarah,

 

I attach ‘dat’ as a txt, according to my laptop, the peaks are instead around 10 in the morning of nov 6th and 8th  … maybe we are unable to reproduce your results because of the time zone in POSIX?

 

> Sys.timezone()

[1] "CET"

 

All the best,

fernando

 

De: Mckinnon, Sarah [mailto:smck...@golder.com]
Enviado el: lunes, 31 de enero de 2011 23:48
Para: fernando; 'Brandon Hurr'; 'MakoSwift'
CC: 'ggplot2'
Asunto: RE: scale_x_datetime showing two ticks for the same day even when major="1 day"

 

Hi Fernando,

 

Thanks for trying out my data.  When I look at the data, it looks like when the turbidity values go up to between 100 and 300, should occur between 22:25:00 on the 7th, and 00:05:00 on the 8th.  On your graph, it makes it look like this rise in values happened in the afternoon of the 8th.  Do you agree, or am I missing something?

 

Thanks,

Sarah.

fernando

unread,
Feb 1, 2011, 1:06:29 AM2/1/11
to Mckinnon, Sarah, Brandon Hurr, MakoSwift, ggplot2

the attachment …

 

De: fernando [mailto:fgta...@gmail.com]
Enviado el: martes, 01 de febrero de 2011 7:03
Para: 'Mckinnon, Sarah'; 'Brandon Hurr'; 'MakoSwift'
CC: 'ggplot2'
Asunto: RE: scale_x_datetime showing two ticks for the same day even when major="1 day"

 

Hi Sarah,

 

I attach ‘dat’ as a txt, according to my laptop, the peaks are instead around 10 in the morning of nov 6th and 8th  … maybe we are unable to reproduce your results because of the time zone in POSIX?

 

> Sys.timezone()

[1] "CET"

 

All the best,

fernando

 

De: Mckinnon, Sarah [mailto:smck...@golder.com]
Enviado el: lunes, 31 de enero de 2011 23:48
Para: fernando; 'Brandon Hurr'; 'MakoSwift'
CC: 'ggplot2'
Asunto: RE: scale_x_datetime showing two ticks for the same day even when major="1 day"

 

Hi Fernando,

 

Thanks for trying out my data.  When I look at the data, it looks like when the turbidity values go up to between 100 and 300, should occur between 22:25:00 on the 7th, and 00:05:00 on the 8th.  On your graph, it makes it look like this rise in values happened in the afternoon of the 8th.  Do you agree, or am I missing something?

 

Thanks,

Sarah.

 

From: ggp...@googlegroups.com [mailto:ggp...@googlegroups.com] On Behalf Of fernando


Sent: Monday, January 31, 2011 2:41 PM
To: 'Brandon Hurr'; 'MakoSwift'
Cc: 'ggplot2'

table.txt

Mckinnon, Sarah

unread,
Jan 31, 2011, 5:48:28 PM1/31/11
to fernando, Brandon Hurr, MakoSwift, ggplot2

Hi Fernando,

 

Thanks for trying out my data.  When I look at the data, it looks like when the turbidity values go up to between 100 and 300, should occur between 22:25:00 on the 7th, and 00:05:00 on the 8th.  On your graph, it makes it look like this rise in values happened in the afternoon of the 8th.  Do you agree, or am I missing something?

 

Thanks,

Sarah.

 

From: ggp...@googlegroups.com [mailto:ggp...@googlegroups.com] On Behalf Of fernando


Sent: Monday, January 31, 2011 2:41 PM
To: 'Brandon Hurr'; 'MakoSwift'
Cc: 'ggplot2'

MakoSwift

unread,
Jan 31, 2011, 5:37:50 PM1/31/11
to ggplot2
Thanks for your help Brandon.

I'm fairly new to R, so I'll have to play around a bit to see if I can
figure out what's going on.

Sarah.
> > [1] tools_2.12.0- Hide quoted text -

MakoSwift

unread,
Jan 31, 2011, 6:02:43 PM1/31/11
to ggplot2
Any suggestions on a different way to do this? In the database, I
have a column with the date, and a separate one with time. Is there a
way to use those two columns for the x axis instead, to see if that's
the problem?

Thanks for everyone's input and help!

Sarah.

On Jan 31, 2:41 pm, "fernando" <fgtabo...@gmail.com> wrote:
> Hi all,
>
> I have no idea of what can be going on, but I obtained the expected graph
> with three different Windows distributions (and two versions of  ggplot2)
> [Murphy's law; all of them different from yours . so I'm not sure if it is
> On Mon, Jan 31, 2011 at 21:43, MakoSwift <mckinno...@gmail.com> wrote:
>
> R version 2.12.0 (2010-10-15)
>
> Platform: i386-pc-mingw32/i386 (32-bit)
>
> locale:
> [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
> States.1252    LC_MONETARY=English_United States.1252
> LC_NUMERIC=C                           LC_TIME=English_United States.
> 1252
>
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets
> methods   base
>
> other attached packages:
>
> [1] ggplot2_0.8.9 proto_0.3-8   reshape_0.8.3 plyr_1.4
> RODBC_1.3-2
>
> loaded via a namespace (and not attached):
> [1] tools_2.12.0
>
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options:http://groups.google.com/group/ggplot2
>
>  07-nov.png
> 7KViewDownload

Frans Slothouber

unread,
Feb 2, 2011, 1:45:45 AM2/2/11
to MakoSwift, ggplot2
Hoi Sarah,

I was able to reproduce the same bug you have by setting my timezone
to 'EST'.

Was able to fix the problem by setting the tz parameter  for scale_x_datetime() to this same timezone,  ie:

scale_x_datetime(limits = c(as.POSIXct("2010-11-06"),
                as.POSIXct("2010-11-10")), minor="1 day", tz=Sys.timezone())

Maybe this works for you too.

Have fun,
Frans.

Frans Slothouber

unread,
Feb 2, 2011, 5:22:15 AM2/2/11
to MakoSwift, ggplot2
Hi,

I was able to reproduce this bug under Linux by running: 

   TZ='America/New_York'; export TZ

before running R.

Under Linux the fix:
   scale_x_datetime(limits = c(as.POSIXct("2010-11-06"),
                as.POSIXct("2010-11-10")), minor="1 day", tz=Sys.timezone())
does not work,  but
  scale_x_datetime(limits = c(as.POSIXct("2010-11-06"),
                as.POSIXct("2010-11-10")), minor="1 day", tz='EST')
does.


This bug might be triggered by the fact that in the EST timezone day light savings
ended on 07 Nov in 2010.  
Which is right in the given data series,  and it also happens to be the day that is repeated.


Have fun,
Frans.

Hadley Wickham

unread,
Feb 4, 2011, 12:22:01 PM2/4/11
to Frans Slothouber, MakoSwift, ggplot2
On Wed, Feb 2, 2011 at 12:45 AM, Frans Slothouber
<frans.sl...@gmail.com> wrote:
> Hoi Sarah,
> I was able to reproduce the same bug you have by setting my timezone
> to 'EST'.
> Was able to fix the problem by setting the tz parameter  for
> scale_x_datetime() to this same timezone,  ie:
> scale_x_datetime(limits = c(as.POSIXct("2010-11-06"),
>                 as.POSIXct("2010-11-10")), minor="1 day", tz=Sys.timezone())

Generally, if you don't care about the timezone, it's best to use UTC
because that doesn't have day light savings.

Hadley


--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

Reply all
Reply to author
Forward
0 new messages