Relative Content

Tag Archive for ggplot2pdfplottidyverserstudio

Using a for loop to plot each column of a data frame?

I have a data frame that consists of a Wavenumber column and 48 other columns for Intensity. Is there a way to use a for loop to plot each Intensity column with the Wavelength column, so I’d end up with 48 separate plots?
Furthermore, is there a way to put all of these plots in a PDF file?

Using a for loop to plot each column of a data table?

I have a data table that consists of a Wavenumber column and 48 other columns for Intensity. Is there a way to use a for loop to plot each Intensity column with the Wavelength column, so I’d end up with 48 separate plots?
Furthermore, is there a way to put all of these plots in a PDF file?