Vapor Pressure of Mercury Prediction

Suet Ling Teh

2/18/2022

Pressure Dataset

This dataset shows the relation between temperature (degree Celsius) and vapor pressure of mercury (mm).

data(pressure)
head(pressure)
  temperature pressure
1           0   0.0002
2          20   0.0012
3          40   0.0060
4          60   0.0300
5          80   0.0900
6         100   0.2700

Scatter Plot of Pressure versus Temperature

plot1<- plot(x=pressure$temperature, y=pressure$pressure,
             xlab='Temperature (deg Celsius)',
             ylab= 'Pressure (mm)',
             main= 'Relationship between Temperature and Pressure')

plot1
## NULL

Linear Model

linearmodel <- lm(pressure ~ temperature, data=pressure)

Plot with Linear Model

plot(x=pressure$temperature, y=pressure$pressure,
             xlab='Temperature (deg Celsius)',
             ylab= 'Pressure (mm)',
             main= 'Relationship between Temperature and Pressure')
abline(linearmodel, col='blue')