R plotting: ggplot output differing from plot output for same dataset

view full story

http://ubuntuforums.org – Hi, I am starting to use R to create data plots using the ggplot2 package rather than the standard plot function that comes with R. The data is a set of mixing ratios of NO against time, hence very small values of NO but that change throughout the range of time values. To get use the standard plot function I use: plot(time, NO) and the output is a plot that has maxima & minima throughout the plot. To use ggplot I write: ggplot(data=plot_data, aes(x=time, y=NO)) + geom_point() + coord_cartesian(ylim=c(0, 5e-12)) and the resulting output is a straight-line graph with all the y-values (Hardware)