Need a little help geom_line. A "stain" appears when plotting

by Sergio Andres Pineda Castillo   Last Updated January 14, 2018 03:26 AM

I am using a dataframe of my own (1737 obs of 2 variables, not too big) and I just want to plot it. It's an FTIR spectrum.

Here's what I get.

The line of code I'm using is pretty straightforward:

ggplot(data= P1,  aes(x = Wavenumbers, y = Absorbance, group=1)) + geom_line()

Any idea what's going on? Why do those stains appear outside the axis?


Tags : r ggplot2 spectrum

Related Questions