ganna10

August 10th, 2012, 03:01 PM

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 being 0.

I am just wondering now whether the fact that all the data input values for NO are in scientific notation (i.e. 6.6e-14).

Any help is appreciated!

Thanks,

Jane

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 being 0.

I am just wondering now whether the fact that all the data input values for NO are in scientific notation (i.e. 6.6e-14).

Any help is appreciated!

Thanks,

Jane