r - stop ggplot2 from dropping data points outside of axis limits? -
if create line plot (a time series, example) , set axis limits, want line go on off plot when points outside of axis limits, , come plot next point within axis limits. right now, seems ggplot2 drop points , give me "error:" message.
if limit axes reducing axis scale (scale_x_continuous(limits=...)
), expected behavior. adjusting scale, defining info should part of plot. if want utilize data, zoom in on particular part of axes, want utilize coord_cartesian(xlim=..., ylim=...)
instead.
r ggplot2
No comments:
Post a Comment