title: ggplot2- Extending a geom_segment beyond visible range of plot
body: <p>I am building a plot for a shiny app using ggplot and plotly. My data spans years, but the user is able to control the date range and just view a small amount at a time. I am trying to use geom_segments to represent durations of events(events with start and end dates). My problem is that the event will not show up on the plot at all unless both the start and end dates are within the user's selected view range. </p>
  
  <p>Is there a way to make the geom_segments appear and look like they are continuing off the side of the plot if, for example, the xend date is not in the selected view range? </p>
  
  <p>Thanks!</p>
  
  <p>Update: 
  Using coord_cartesian instead seems to be the right track but now I am getting this view:
  <a href="https://i.stack.imgur.com/inLdC.png" rel="nofollow noreferrer">Plot</a></p>