Re: [R] weird ggplot geom_segment behaviour

2017-03-17 Thread PIKAL Petr
@r-project.org Subject: Re: [R] weird ggplot geom_segment behaviour Hi Petr, It "seems" to be linked to the =/- 14 days that you are using for the limits. The code below should restore one more bar. After that I don't know. p2 <- p+geom_segment(alpha=.4, size=3)+xlim(c(toda

Re: [R] weird ggplot geom_segment behaviour

2017-03-17 Thread John Kane via R-help
Hi Petr,It "seems" to be linked to the =/- 14 days that you are using for the limits. The code below should  restore one more bar. After that I don't know. p2 <- p+geom_segment(alpha=.4, size=3)+xlim(c(today()-21, today()+21))+   geom_vline(xintercept=as.numeric(today()), colour="pink", size=5)

Re: [R] weird ggplot geom_segment behaviour

2017-03-17 Thread PIKAL Petr
hierry Onkelinx [mailto:thierry.onkel...@inbo.be] > Sent: Friday, March 17, 2017 2:30 PM > To: PIKAL Petr > Cc: r-help@r-project.org > Subject: Re: [R] weird ggplot geom_segment behaviour > > Dear Petr, > > Don't use xlim() but rather coord_cartesian(xlim = ...). See &g

Re: [R] weird ggplot geom_segment behaviour

2017-03-17 Thread Thierry Onkelinx
Dear Petr, Don't use xlim() but rather coord_cartesian(xlim = ...). See https://rpubs.com/INBOstats/zoom_in Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kl

[R] weird ggplot geom_segment behaviour

2017-03-17 Thread PIKAL Petr
Dear all I try to limit geom segment plot by xlim and encounter weird behaviour. Here is my data > dput(temp) temp <- structure(list(ukol = c("externí kalcinace", "povrchová úprava UVS30", "Testy mletí UVS30", "změna koncentrace olejových disperzí", "Mletí povrchově upravené UVS30", "mikronizace