library(chemistr)
File name:
Project Link:
# Here is where you input your raw data from your experiment. Concentration<- c() #include the final concentration in your dilutions in units of Molarity. Transmittance <- c() #Percent transmittance. Make sure only data that is within the quantifiable range (1-80%) is included data <- data.frame(Concentration, Transmittance) #This creates a table of data. For more info on data frames see: https://www.tutorialspoint.com/r/r_data_frames.htm
#The first mathematical model you will test is the intensity independent model which predicts a linear relationship between %T and concentration. In this case you can directly fit concentration versus transmittance to a straight line fit. #To create the scatter plot, go to your linear regression lab report or the Chem_ScatterPlot template and copy and paste the code that will 1) create a scatter plot, using chem_scatter function 2) extract the fit data using the lm function and 3) provide a summary of the fit data using summary. #Change the code to represent the variables names in your data frame. #Once you have run this chunk, write a caption after fig.cap = "Insert Caption" in the R chunk heading above. In your caption (sentence format) include the wavelength being tested, size of the cuvette, mathematical model you are testing and the details of the fit (slope +/- error and Y-intercept +/- error and R^2)
#In this chunk you will test the intensity dependent model which predicts a exponential relationship between %T and concentration. To fit with the straight line lm() function, we need to rewrite the relationship as a semi-log plot in which the log10(Y) is graphed on the Y axis instead of just Y. #Just as in the previous chunk you will need to create a graph, extract the fit information and display a summary of it. #Also, your caption should include the same type of information as the previous chunk (in a complete sentence).
Example wording (should be deleted): A linear relationship was observed between apples and time because it fit the data better than the semi-log model. This is measured by the higher R^2 value in the linear plot (Figure 1) versus the semi-log plot (Figure 2). A linear prediction indicates that apples were eaten consistently over the course of a day.
Delete this and write your answer.
Delete this and write your answer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.