This is an R HTML document. When you click the Knit HTML button a web page will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

library(readxl)
library(ggpubr)
## Loading required package: ggplot2
library(FSA)
## Registered S3 methods overwritten by 'FSA':
##   method       from
##   confint.boot car 
##   hist.boot    car
## ## FSA v0.10.0. See citation('FSA') if used in publication.
## ## Run fishR() for related website and fishR('IFAR') for related book.
library(forestmodel)
## Warning: package 'forestmodel' was built under R version 4.5.3
library(labelled)
## Warning: package 'labelled' was built under R version 4.5.3
library(flexplot)
## 
## Attaching package: 'flexplot'
## The following object is masked from 'package:ggplot2':
## 
##     flip_data
library(mice)
## Warning: package 'mice' was built under R version 4.5.3
## 
## Attaching package: 'mice'
## The following object is masked from 'package:stats':
## 
##     filter
## The following objects are masked from 'package:base':
## 
##     cbind, rbind
library(gtsummary)
library(modelsummary)
## Warning: package 'modelsummary' was built under R version 4.5.3
library(broom)
library(rstatix)
## 
## Attaching package: 'rstatix'
## The following object is masked from 'package:stats':
## 
##     filter
##      City           Number_of_cleaning_weekly Cleaningfrequency Season_sampled 
##  Length:32          Min.   :1.000             Min.   :1.0       Min.   :1.000  
##  Class :character   1st Qu.:1.000             1st Qu.:1.0       1st Qu.:1.000  
##  Mode  :character   Median :3.500             Median :1.5       Median :1.000  
##                     Mean   :3.231             Mean   :1.5       Mean   :1.406  
##                     3rd Qu.:5.000             3rd Qu.:2.0       3rd Qu.:2.000  
##                     Max.   :7.000             Max.   :2.0       Max.   :3.000  
##                     NA's   :6                 NA's   :6                        
##    Province         PleasespecifythetypeofventilationsystemSelectedChoice
##  Length:32          Length:32                                            
##  Class :character   Class :character                                     
##  Mode  :character   Mode  :character                                     
##                                                                          
##                                                                          
##                                                                          
##                                                                          
##   Buildingtype   Buildingaddress        Policy          ID       
##  Min.   :1.000   Length:32          Min.   :1.0   Min.   : 1.00  
##  1st Qu.:1.000   Class :character   1st Qu.:1.0   1st Qu.: 9.75  
##  Median :1.000   Mode  :character   Median :1.5   Median :17.50  
##  Mean   :1.562                      Mean   :1.5   Mean   :17.69  
##  3rd Qu.:2.000                      3rd Qu.:2.0   3rd Qu.:26.25  
##  Max.   :3.000                      Max.   :2.0   Max.   :34.00  
##                                                                  
##  MR_Perceptions  OF_Perceptions  WS_Perceptions   MR_occu_perc    OF_occu_perc 
##  Min.   :3.000   Min.   :1.000   Min.   :2.000   Min.   :3.500   Min.   :3.00  
##  1st Qu.:3.000   1st Qu.:3.000   1st Qu.:2.150   1st Qu.:4.000   1st Qu.:4.00  
##  Median :3.200   Median :3.000   Median :3.000   Median :4.500   Median :4.30  
##  Mean   :3.273   Mean   :3.129   Mean   :2.829   Mean   :4.473   Mean   :4.36  
##  3rd Qu.:3.500   3rd Qu.:3.300   3rd Qu.:3.000   3rd Qu.:5.000   3rd Qu.:4.75  
##  Max.   :4.000   Max.   :4.000   Max.   :4.000   Max.   :5.000   Max.   :5.00  
##  NA's   :21      NA's   :15      NA's   :18      NA's   :21      NA's   :17    
##   WS_occu_perc   Acetaldehyde_MR    LG_Acet_MR     Acetaldehyde_OF 
##  Min.   :3.500   Min.   :  2.50   Min.   :0.3979   Min.   :  4.00  
##  1st Qu.:4.000   1st Qu.:  6.75   1st Qu.:0.8266   1st Qu.:  9.00  
##  Median :4.500   Median : 17.50   Median :1.2430   Median : 18.00  
##  Mean   :4.475   Mean   : 26.67   Mean   :1.2141   Mean   : 30.46  
##  3rd Qu.:5.000   3rd Qu.: 29.75   3rd Qu.:1.4731   3rd Qu.: 35.00  
##  Max.   :5.000   Max.   :100.50   Max.   :2.0022   Max.   :130.00  
##  NA's   :20      NA's   :5        NA's   :5        NA's   :5       
##  Acetaldehyde_WS  Acetaldehyde_Daily_Mean Acetic_Acid_MR   Acetic_Acid_OF   
##  Min.   :  0.50   Min.   : 0.1667         Min.   :  1.00   Min.   :  0.500  
##  1st Qu.: 12.50   1st Qu.: 8.0000         1st Qu.:  2.25   1st Qu.:  2.375  
##  Median : 22.50   Median :26.0000         Median :  5.50   Median :  5.000  
##  Mean   : 37.03   Mean   :30.0747         Mean   : 11.45   Mean   : 13.641  
##  3rd Qu.: 48.00   3rd Qu.:42.0000         3rd Qu.: 11.75   3rd Qu.: 18.625  
##  Max.   :170.00   Max.   :86.5000         Max.   :101.00   Max.   :115.000  
##  NA's   :3        NA's   :3               NA's   :2                         
##  Acetic_Acid_WS  Acetic_Acid_Mean    Acetone_MR       Acetone_OF    
##  Min.   : 0.50   Min.   :  1.000   Min.   :  1.50   Min.   :  5.00  
##  1st Qu.: 2.50   1st Qu.:  3.000   1st Qu.: 13.12   1st Qu.: 11.25  
##  Median : 6.00   Median :  5.583   Median : 18.75   Median : 22.50  
##  Mean   :13.40   Mean   : 12.312   Mean   : 44.19   Mean   : 50.10  
##  3rd Qu.:15.75   3rd Qu.: 15.375   3rd Qu.: 31.88   3rd Qu.: 48.75  
##  Max.   :97.50   Max.   :104.500   Max.   :300.00   Max.   :290.00  
##  NA's   :2                                          NA's   :1       
##    Acetone_WS      Acetone_Mean     Acetone_Outdoor Benzaldehyde_MR 
##  Min.   :  5.00   Min.   :  2.167   Min.   : 1.00   Min.   : 0.500  
##  1st Qu.: 10.88   1st Qu.: 14.333   1st Qu.: 1.00   1st Qu.: 1.000  
##  Median : 21.25   Median : 20.417   Median : 2.00   Median : 2.000  
##  Mean   : 40.53   Mean   : 44.417   Mean   : 3.31   Mean   : 2.682  
##  3rd Qu.: 39.12   3rd Qu.: 36.750   3rd Qu.: 3.00   3rd Qu.: 3.375  
##  Max.   :275.00   Max.   :265.000   Max.   :24.00   Max.   :11.000  
##                                     NA's   :3       NA's   :10      
##  Benzaldehyde_OF Benzaldehyde_WS Benzaldehyde_Mean alpha_pinene_MR 
##  Min.   :0.50    Min.   :0.500   Min.   :0.3333    Min.   : 0.500  
##  1st Qu.:1.00    1st Qu.:1.000   1st Qu.:0.8333    1st Qu.: 1.000  
##  Median :1.50    Median :2.000   Median :1.3333    Median : 2.000  
##  Mean   :2.56    Mean   :2.717   Mean   :2.2901    Mean   :10.125  
##  3rd Qu.:4.00    3rd Qu.:4.250   3rd Qu.:3.7500    3rd Qu.: 5.625  
##  Max.   :9.00    Max.   :6.500   Max.   :8.6667    Max.   :76.000  
##  NA's   :7       NA's   :9       NA's   :5         NA's   :20      
##  alpha_pinene_OF  alpha_pinene_WS   Butadiene_MR    Butadiene_two_methyl_OF
##  Min.   : 0.500   Min.   : 0.500   Min.   : 0.500   Min.   : 0.500         
##  1st Qu.: 1.375   1st Qu.: 1.000   1st Qu.: 1.000   1st Qu.: 1.625         
##  Median : 2.000   Median : 2.000   Median : 3.000   Median : 3.500         
##  Mean   : 8.042   Mean   : 8.154   Mean   : 4.467   Mean   : 4.833         
##  3rd Qu.: 5.375   3rd Qu.: 5.000   3rd Qu.: 7.375   3rd Qu.: 7.500         
##  Max.   :46.500   Max.   :50.500   Max.   :17.500   Max.   :14.000         
##  NA's   :20       NA's   :19       NA's   :2        NA's   :2              
##  Butadiene_two_methyl_WS Butadiene_Mean      Benzene_MR       Benzene_OF    
##  Min.   : 0.500          Min.   : 0.1667   Min.   : 0.500   Min.   : 0.500  
##  1st Qu.: 1.500          1st Qu.: 1.3333   1st Qu.: 1.000   1st Qu.: 0.500  
##  Median : 3.500          Median : 3.8333   Median : 1.250   Median : 1.000  
##  Mean   : 4.548          Mean   : 4.5161   Mean   : 6.444   Mean   : 3.447  
##  3rd Qu.: 7.000          3rd Qu.: 6.5833   3rd Qu.: 5.750   3rd Qu.: 2.500  
##  Max.   :15.500          Max.   :15.6667   Max.   :41.500   Max.   :36.500  
##  NA's   :1               NA's   :1         NA's   :14       NA's   :13      
##    Benzene_WS      VAR00002          Benzene_Out       Butane_MR     
##  Min.   : 0.50   Length:32          Min.   :0.0000   Min.   :  0.50  
##  1st Qu.: 1.00   Class :character   1st Qu.:1.0000   1st Qu.:  1.25  
##  Median : 1.00   Mode  :character   Median :1.0000   Median :  3.00  
##  Mean   : 4.40                      Mean   :0.8125   Mean   : 22.98  
##  3rd Qu.: 2.75                      3rd Qu.:1.0000   3rd Qu.:  6.25  
##  Max.   :38.00                      Max.   :1.0000   Max.   :370.00  
##  NA's   :17                                          NA's   :1       
##    Butane_OF        Butane_WS        Butane_Mean       Butane2Meth_MR   
##  Min.   :  0.50   Min.   :  0.500   Min.   :  0.3333   Min.   :  0.500  
##  1st Qu.:  1.50   1st Qu.:  1.000   1st Qu.:  1.0000   1st Qu.:  2.000  
##  Median :  3.50   Median :  3.750   Median :  3.6667   Median :  3.000  
##  Mean   : 19.76   Mean   : 19.672   Mean   : 19.9479   Mean   : 20.917  
##  3rd Qu.:  6.50   3rd Qu.:  7.375   3rd Qu.:  6.0417   3rd Qu.:  6.875  
##  Max.   :305.00   Max.   :345.000   Max.   :340.0000   Max.   :380.000  
##  NA's   :3                                             NA's   :2        
##  Butane2Meth_OF   Butane2Meth_WS   CyclopentassiloxaneDecamethyl_OF
##  Min.   :  1.00   Min.   :  1.00   Min.   :  0.50                  
##  1st Qu.:  2.00   1st Qu.:  2.00   1st Qu.:  3.50                  
##  Median :  4.00   Median :  2.50   Median :  8.00                  
##  Mean   : 20.12   Mean   : 19.11   Mean   : 23.86                  
##  3rd Qu.:  6.50   3rd Qu.:  6.25   3rd Qu.: 35.50                  
##  Max.   :375.00   Max.   :385.00   Max.   :110.00                  
##  NA's   :3        NA's   :1        NA's   :3                       
##  CyclopentassiloxaneDecamethyl_WS CyclopentassiloxaneDecamethyl_MR
##  Min.   : 1.00                    Min.   :  0.50                  
##  1st Qu.: 4.00                    1st Qu.:  3.00                  
##  Median :16.50                    Median :  9.00                  
##  Mean   :26.57                    Mean   : 27.17                  
##  3rd Qu.:39.50                    3rd Qu.: 30.50                  
##  Max.   :98.00                    Max.   :130.00                  
##  NA's   :3                        NA's   :3                       
##  CyclotetrasiloxaneOctamethyl_MR CyclotetrasiloxaneOctamethyl_OF
##  Min.   : 0.500                  Min.   : 0.500                 
##  1st Qu.: 1.000                  1st Qu.: 1.000                 
##  Median : 2.000                  Median : 1.750                 
##  Mean   : 3.083                  Mean   : 2.875                 
##  3rd Qu.: 2.500                  3rd Qu.: 4.125                 
##  Max.   :13.000                  Max.   :11.500                 
##  NA's   :14                      NA's   :12                     
##  CyclotetrasiloxaneOctamethyl_WS Cleaning_done_during_hours Cyclopentane_MR 
##  Min.   : 0.500                  Length:32                  Min.   :  0.50  
##  1st Qu.: 1.000                  Class :character           1st Qu.:  1.00  
##  Median : 1.250                  Mode  :character           Median :  4.75  
##  Mean   : 2.225                                             Mean   : 15.48  
##  3rd Qu.: 2.500                                             3rd Qu.: 14.62  
##  Max.   :10.500                                             Max.   :112.00  
##  NA's   :12                                                 NA's   :8       
##  Cyclopentane_OF  Cyclopentane_WS   Dlimonene_MR    Dlimonene_OF 
##  Min.   :  1.00   Min.   :  0.50   Min.   : 0.50   Min.   : 1.0  
##  1st Qu.:  2.50   1st Qu.:  1.00   1st Qu.: 2.50   1st Qu.: 2.0  
##  Median :  4.50   Median :  5.00   Median : 4.00   Median : 4.0  
##  Mean   : 17.28   Mean   : 14.08   Mean   :10.39   Mean   : 8.2  
##  3rd Qu.: 11.00   3rd Qu.: 15.00   3rd Qu.: 8.75   3rd Qu.: 7.0  
##  Max.   :165.00   Max.   :122.00   Max.   :78.00   Max.   :62.0  
##  NA's   :7        NA's   :7        NA's   :9       NA's   :7     
##   Dlimonene_WS      Ethanol_MR       Ethanol_0F       Ethanol_WS     
##  Min.   : 0.500   Min.   :   1.0   Min.   :   2.5   Min.   :   5.50  
##  1st Qu.: 2.000   1st Qu.:  24.5   1st Qu.:  47.0   1st Qu.:  34.75  
##  Median : 3.000   Median : 101.5   Median :  89.5   Median :  97.75  
##  Mean   : 7.466   Mean   : 275.6   Mean   : 281.5   Mean   : 211.34  
##  3rd Qu.: 6.000   3rd Qu.: 197.5   3rd Qu.: 185.0   3rd Qu.: 216.25  
##  Max.   :64.000   Max.   :2300.0   Max.   :2350.0   Max.   :1505.00  
##  NA's   :3                                                           
##  Ethanol_outdoor  Ethanol_Index       Ethanol_Log     Ethylacetate_MR 
##  Min.   :  1.00   Min.   :   3.167   Min.   :0.5006   Min.   :  0.50  
##  1st Qu.:  1.00   1st Qu.:  51.333   1st Qu.:1.7099   1st Qu.:  1.00  
##  Median :  1.00   Median : 107.083   Median :2.0296   Median :  3.00  
##  Mean   : 23.68   Mean   : 256.156   Mean   :2.0177   Mean   : 14.18  
##  3rd Qu.:  7.50   3rd Qu.: 198.250   3rd Qu.:2.2951   3rd Qu.:  4.25  
##  Max.   :240.00   Max.   :1761.667   Max.   :3.2459   Max.   :185.00  
##  NA's   :13                                           NA's   :10      
##  Ethylacetate_OF  Ethylacetate_WS     Heptane_MR       Heptane_OF    
##  Min.   :  0.50   Min.   :  0.500   Min.   : 0.500   Min.   : 0.500  
##  1st Qu.:  1.25   1st Qu.:  1.000   1st Qu.: 1.000   1st Qu.: 1.000  
##  Median :  2.00   Median :  2.250   Median : 1.500   Median : 1.000  
##  Mean   : 13.09   Mean   : 13.396   Mean   : 6.853   Mean   : 5.972  
##  3rd Qu.:  5.00   3rd Qu.:  4.125   3rd Qu.: 4.000   3rd Qu.: 2.500  
##  Max.   :205.00   Max.   :200.000   Max.   :66.000   Max.   :57.000  
##  NA's   :5        NA's   :8         NA's   :15       NA's   :14      
##    Heptane_WS       Hexanal_MR       Hexanal_OF       Hexanal_WS    
##  Min.   : 0.500   Min.   : 0.500   Min.   : 0.500   Min.   : 0.500  
##  1st Qu.: 1.000   1st Qu.: 1.000   1st Qu.: 1.000   1st Qu.: 1.000  
##  Median : 1.000   Median : 1.250   Median : 1.250   Median : 1.500  
##  Mean   : 8.967   Mean   : 3.942   Mean   : 4.154   Mean   : 3.538  
##  3rd Qu.: 4.250   3rd Qu.: 4.750   3rd Qu.: 4.375   3rd Qu.: 3.875  
##  Max.   :62.000   Max.   :31.000   Max.   :26.000   Max.   :29.000  
##  NA's   :17       NA's   :6        NA's   :6        NA's   :6       
##  Hexane2Methyl_MR  Hexane2Methyl_OF Hexane2Methyl_WS Isopropylalc_MR  
##  Min.   :  0.500   Min.   : 0.500   Min.   :  0.50   Min.   :   1.00  
##  1st Qu.:  1.000   1st Qu.: 1.000   1st Qu.:  0.50   1st Qu.:   3.00  
##  Median :  2.000   Median : 1.500   Median :  1.50   Median :   7.00  
##  Mean   :  9.467   Mean   : 8.067   Mean   : 13.35   Mean   :  64.31  
##  3rd Qu.:  4.500   3rd Qu.: 5.250   3rd Qu.:  4.00   3rd Qu.:  22.00  
##  Max.   :105.000   Max.   :84.500   Max.   :102.50   Max.   :1020.00  
##  NA's   :17        NA's   :17       NA's   :15       NA's   :3        
##  Isopropylalc_OF   Isopropylalc_WS  Isopropyl_mean   MethylEthylKetone_MR
##  Min.   :  0.500   Min.   :  0.50   Min.   :  0.30   Min.   : 0.5        
##  1st Qu.:  2.625   1st Qu.:  2.00   1st Qu.:  2.25   1st Qu.: 1.0        
##  Median :  8.500   Median :  6.50   Median :  9.00   Median : 2.0        
##  Mean   : 55.083   Mean   : 54.21   Mean   : 53.04   Mean   : 4.0        
##  3rd Qu.: 23.125   3rd Qu.: 22.00   3rd Qu.: 24.71   3rd Qu.: 2.5        
##  Max.   :675.000   Max.   :985.00   Max.   :893.33   Max.   :57.0        
##  NA's   :2         NA's   :3                         NA's   :5           
##  MethylEthylKetone_OF MeththEthylKetone_WS MxylenePxylene_MR MxylelePxylene_OF
##  Min.   : 1.000       Min.   : 0.5         Min.   :  0.50    Min.   :  0.50   
##  1st Qu.: 1.000       1st Qu.: 1.0         1st Qu.:  1.00    1st Qu.:  1.00   
##  Median : 2.000       Median : 2.0         Median :  1.50    Median :  2.00   
##  Mean   : 4.708       Mean   : 4.0         Mean   : 12.26    Mean   : 11.06   
##  3rd Qu.: 3.125       3rd Qu.: 2.5         3rd Qu.:  5.00    3rd Qu.:  5.00   
##  Max.   :60.500       Max.   :50.0         Max.   :230.00    Max.   :200.00   
##  NA's   :8            NA's   :7            NA's   :7         NA's   :7        
##  MxylenePxylene_WS  Xylene_mean        Nonanal_MR       Nonanal_OF   
##  Min.   :  0.500   Min.   :  0.500   Min.   : 0.500   Min.   :0.500  
##  1st Qu.:  1.000   1st Qu.:  1.000   1st Qu.: 1.000   1st Qu.:1.000  
##  Median :  2.000   Median :  1.667   Median : 1.250   Median :1.500  
##  Mean   :  9.426   Mean   : 11.713   Mean   : 2.062   Mean   :2.104  
##  3rd Qu.:  5.500   3rd Qu.:  6.000   3rd Qu.: 2.250   3rd Qu.:2.500  
##  Max.   :143.300   Max.   :216.667   Max.   :10.000   Max.   :7.500  
##  NA's   :9         NA's   :7         NA's   :8        NA's   :8      
##    Nonanal_WS      nHexane_mr       nHexane_OF       nHexane_WS     
##  Min.   :0.500   Min.   :  0.50   Min.   :  0.50   Min.   :  0.500  
##  1st Qu.:1.000   1st Qu.:  1.00   1st Qu.:  1.00   1st Qu.:  1.000  
##  Median :1.500   Median :  2.00   Median :  1.00   Median :  1.500  
##  Mean   :2.022   Mean   : 22.79   Mean   : 25.69   Mean   : 22.250  
##  3rd Qu.:2.750   3rd Qu.:  5.00   3rd Qu.:  3.00   3rd Qu.:  5.125  
##  Max.   :6.000   Max.   :290.00   Max.   :380.00   Max.   :270.000  
##  NA's   :9       NA's   :11       NA's   :11       NA's   :12       
##    Pentane_MR       Pentane_OF        Pentane_WS       p_cymene_MR   
##  Min.   :  1.00   Min.   :  1.000   Min.   :  1.000   Min.   :0.500  
##  1st Qu.:  2.50   1st Qu.:  2.625   1st Qu.:  2.625   1st Qu.:0.500  
##  Median :  4.50   Median :  7.250   Median :  5.750   Median :1.250  
##  Mean   : 23.22   Mean   : 24.327   Mean   : 25.019   Mean   :1.438  
##  3rd Qu.: 15.00   3rd Qu.: 15.500   3rd Qu.: 15.250   3rd Qu.:2.000  
##  Max.   :340.00   Max.   :305.000   Max.   :340.000   Max.   :3.500  
##  NA's   :3        NA's   :6         NA's   :6         NA's   :24     
##  Trimethyl_pentanediol_MR Cyclopentane_methyl_MR Cyclopentane_methyl_OF
##  Min.   :0.500            Min.   :  0.50         Min.   :  0.50        
##  1st Qu.:0.500            1st Qu.:  1.00         1st Qu.:  1.00        
##  Median :1.000            Median :  2.00         Median :  3.25        
##  Mean   :1.045            Mean   : 17.32         Mean   : 24.60        
##  3rd Qu.:1.250            3rd Qu.:  6.00         3rd Qu.:  7.50        
##  Max.   :2.500            Max.   :145.00         Max.   :130.00        
##  NA's   :21               NA's   :18             NA's   :22            
##  Cyclopentane_methyl_WS   Decanal_OF     Hexane_3methyl_MR  Isobutane_MR  
##  Min.   :  0.500        Min.   :0.5000   Min.   : 0.500    Min.   : 0.50  
##  1st Qu.:  0.625        1st Qu.:0.5000   1st Qu.: 1.000    1st Qu.: 1.25  
##  Median :  1.250        Median :1.0000   Median : 1.000    Median : 2.00  
##  Mean   : 17.107        Mean   :0.9091   Mean   : 7.733    Mean   : 8.30  
##  3rd Qu.:  4.375        3rd Qu.:1.2500   3rd Qu.: 2.750    3rd Qu.:10.50  
##  Max.   :145.000        Max.   :1.5000   Max.   :78.000    Max.   :45.50  
##  NA's   :18             NA's   :21       NA's   :17        NA's   :17     
##   Isobutane_OF     Isobutane_WS     Octanal_WS     Pentane2_meth_WS
##  Min.   : 0.500   Min.   : 0.50   Min.   :0.5000   Min.   :  0.50  
##  1st Qu.: 1.000   1st Qu.: 1.50   1st Qu.:0.5000   1st Qu.:  0.50  
##  Median : 1.750   Median : 2.50   Median :0.5000   Median :  1.00  
##  Mean   : 6.786   Mean   :11.71   Mean   :0.7273   Mean   : 22.42  
##  3rd Qu.: 4.625   3rd Qu.: 9.25   3rd Qu.:1.0000   3rd Qu.:  5.00  
##  Max.   :49.500   Max.   :52.50   Max.   :1.5000   Max.   :255.00  
##  NA's   :18       NA's   :18      NA's   :21       NA's   :19      
##  Pentane_3_meth_MR Pentane3_meth_OF Pentane3_meth_WS Propane_pentafluoro_WS
##  Min.   :  0.50    Min.   :  0.50   Min.   :  0.50   Min.   : 0.500        
##  1st Qu.:  1.00    1st Qu.:  1.00   1st Qu.:  1.00   1st Qu.: 6.125        
##  Median :  2.00    Median :  2.00   Median :  2.00   Median :10.000        
##  Mean   : 12.85    Mean   : 13.33   Mean   : 14.43   Mean   :17.964        
##  3rd Qu.:  5.50    3rd Qu.:  5.25   3rd Qu.:  5.50   3rd Qu.:20.250        
##  Max.   :130.00    Max.   :110.00   Max.   :125.00   Max.   :68.000        
##  NA's   :15        NA's   :17       NA's   :18       NA's   :18            
##    Butanal_WS    Trimethyl_224_OF Trimethyl_224_WS  Propylene_MR   
##  Min.   :0.500   Min.   :0.50     Min.   :0.500    Min.   :  0.50  
##  1st Qu.:0.500   1st Qu.:0.75     1st Qu.:0.500    1st Qu.:  1.50  
##  Median :1.000   Median :1.50     Median :1.000    Median :  2.00  
##  Mean   :1.176   Mean   :1.60     Mean   :1.286    Mean   : 11.18  
##  3rd Qu.:1.500   3rd Qu.:2.00     3rd Qu.:2.000    3rd Qu.:  7.00  
##  Max.   :3.000   Max.   :4.50     Max.   :3.000    Max.   :135.00  
##  NA's   :15      NA's   :17       NA's   :18       NA's   :7       
##   Propylene_OF      Propylene_WS    Trichlorofluromethane_MR
##  Min.   :  1.000   Min.   : 1.000   Min.   :0.500           
##  1st Qu.:  2.375   1st Qu.: 1.500   1st Qu.:1.000           
##  Median :  4.250   Median : 3.750   Median :1.000           
##  Mean   : 14.729   Mean   : 8.625   Mean   :1.429           
##  3rd Qu.:  9.125   3rd Qu.: 8.375   3rd Qu.:1.500           
##  Max.   :120.000   Max.   :54.500   Max.   :6.500           
##  NA's   :8         NA's   :8        NA's   :11              
##  Trichlorofluromethane_OF Trichlorofluromethane_WS   Toluene_MR     
##  Min.   :0.500            Min.   :0.50             Min.   :  0.500  
##  1st Qu.:0.875            1st Qu.:1.00             1st Qu.:  1.500  
##  Median :1.000            Median :1.00             Median :  2.500  
##  Mean   :1.375            Mean   :1.35             Mean   : 12.050  
##  3rd Qu.:1.000            3rd Qu.:1.25             3rd Qu.:  4.375  
##  Max.   :6.000            Max.   :3.50             Max.   :225.000  
##  NA's   :12               NA's   :12               NA's   :2        
##    Toluene_OF       Toluene_WS      Toluene_mean      VAR00001      
##  Min.   :  1.00   Min.   :  1.00   Min.   :  0.8333   Mode:logical  
##  1st Qu.:  2.00   1st Qu.:  1.00   1st Qu.:  1.5000   NA's:32       
##  Median :  2.50   Median :  2.00   Median :  2.3333                 
##  Mean   : 11.35   Mean   : 11.34   Mean   : 11.3602                 
##  3rd Qu.:  3.50   3rd Qu.:  3.50   3rd Qu.:  3.4167                 
##  Max.   :205.00   Max.   :220.00   Max.   :216.6667                 
##  NA's   :2        NA's   :1        NA's   :1                        
##  TVOCmeetingroomµgm³ TVOCofficeµgm³   TVOCwashroomµgm³ TVOC_Average_Daily
##  Min.   :  65.0      Min.   :  73.0   Min.   :  85.5   Min.   :  74.5    
##  1st Qu.: 182.5      1st Qu.: 238.8   1st Qu.: 270.0   1st Qu.: 266.7    
##  Median : 375.0      Median : 430.0   Median : 445.0   Median : 432.3    
##  Mean   : 884.5      Mean   : 872.4   Mean   : 821.8   Mean   : 859.6    
##  3rd Qu.: 688.8      3rd Qu.: 708.8   3rd Qu.: 875.0   3rd Qu.: 705.0    
##  Max.   :7450.0      Max.   :6800.0   Max.   :7150.0   Max.   :7133.3    
##                                                                          
##  TVOCs_outdoor      Carpet_MR       Carpet_OF      Carpet_WS   Airintake    
##  Min.   :  1.00   Min.   :1.000   Min.   :1.00   Min.   :1   Min.   :1.000  
##  1st Qu.: 18.00   1st Qu.:1.000   1st Qu.:1.00   1st Qu.:1   1st Qu.:1.000  
##  Median : 29.00   Median :1.000   Median :1.00   Median :1   Median :1.000  
##  Mean   : 74.22   Mean   :1.258   Mean   :1.29   Mean   :1   Mean   :1.312  
##  3rd Qu.: 71.25   3rd Qu.:1.500   3rd Qu.:2.00   3rd Qu.:1   3rd Qu.:2.000  
##  Max.   :390.00   Max.   :2.000   Max.   :2.00   Max.   :1   Max.   :2.000  
##                   NA's   :1       NA's   :1      NA's   :1                  
##   TVOC_thresh    Isobutylene_MR   isobutylene_OF   isobutylene_WS  
##  Min.   :1.000   Min.   : 0.400   Min.   : 0.500   Min.   : 0.500  
##  1st Qu.:1.000   1st Qu.: 1.000   1st Qu.: 1.000   1st Qu.: 1.000  
##  Median :1.000   Median : 1.500   Median : 1.000   Median : 1.500  
##  Mean   :1.438   Mean   : 3.924   Mean   : 4.062   Mean   : 4.342  
##  3rd Qu.:2.000   3rd Qu.: 3.000   3rd Qu.: 3.125   3rd Qu.: 3.750  
##  Max.   :2.000   Max.   :44.000   Max.   :37.500   Max.   :40.000  
##                  NA's   :11       NA's   :16       NA's   :13      
##  Isobutylene_Mean   Acrolein_MR   Acrolein_OF      Acrolein_WS    
##  Min.   : 0.1667   Min.   :0.5   Min.   :0.5000   Min.   :0.5000  
##  1st Qu.: 0.5000   1st Qu.:0.5   1st Qu.:0.5000   1st Qu.:0.7500  
##  Median : 1.0000   Median :0.5   Median :0.5000   Median :1.0000  
##  Mean   : 3.2069   Mean   :0.7   Mean   :0.6429   Mean   :0.9286  
##  3rd Qu.: 2.7500   3rd Qu.:1.0   3rd Qu.:0.7500   3rd Qu.:1.0000  
##  Max.   :40.5000   Max.   :1.0   Max.   :1.0000   Max.   :1.5000  
##  NA's   :8         NA's   :27    NA's   :25       NA's   :25      
##  Acro_daily_av  Carbon_tetra_MR  Carbon_tetra_OF Carbon_tetra_WS
##  Min.   :0.20   Min.   :0.5000   Min.   :0.500   Min.   :0.5    
##  1st Qu.:0.20   1st Qu.:0.5000   1st Qu.:0.625   1st Qu.:1.0    
##  Median :0.30   Median :1.0000   Median :1.000   Median :1.0    
##  Mean   :0.35   Mean   :0.8214   Mean   :1.000   Mean   :1.0    
##  3rd Qu.:0.35   3rd Qu.:1.0000   3rd Qu.:1.000   3rd Qu.:1.0    
##  Max.   :1.00   Max.   :1.0000   Max.   :2.500   Max.   :2.0    
##  NA's   :20     NA's   :18       NA's   :22      NA's   :22     
##  Chloroform_WS   Ethylbenzene_OF  Ethylbenzene_WS  Ethylbenzene_MR 
##  Min.   :1.000   Min.   : 0.500   Min.   : 1.000   Min.   : 0.500  
##  1st Qu.:1.000   1st Qu.: 1.000   1st Qu.: 1.000   1st Qu.: 1.000  
##  Median :1.000   Median : 1.250   Median : 1.500   Median : 1.500  
##  Mean   :1.778   Mean   : 7.188   Mean   : 9.667   Mean   : 9.214  
##  3rd Qu.:1.500   3rd Qu.: 2.250   3rd Qu.: 2.750   3rd Qu.: 2.500  
##  Max.   :4.500   Max.   :47.500   Max.   :50.000   Max.   :55.500  
##  NA's   :23      NA's   :24       NA's   :26       NA's   :25      
##  Ethylene_glycol_OF Ethylene_glycol_WS Ethylene_glycol_MR  o_Xylene_MR    
##  Min.   : 5.500     Min.   :3.500      Min.   : 2.5       Min.   : 0.500  
##  1st Qu.: 5.500     1st Qu.:4.125      1st Qu.: 2.5       1st Qu.: 1.000  
##  Median : 7.500     Median :4.750      Median : 4.0       Median : 2.000  
##  Mean   : 8.125     Mean   :4.750      Mean   : 6.0       Mean   : 9.944  
##  3rd Qu.:10.125     3rd Qu.:5.375      3rd Qu.: 7.5       3rd Qu.: 2.000  
##  Max.   :12.000     Max.   :6.000      Max.   :13.5       Max.   :76.500  
##  NA's   :28         NA's   :30         NA's   :28         NA's   :23      
##   o_Xylene_OF     o_Xylene_WS      Phenol_MR       Phenol_OF    
##  Min.   : 0.50   Min.   : 1.00   Min.   :0.500   Min.   :0.500  
##  1st Qu.: 1.00   1st Qu.: 1.00   1st Qu.:0.500   1st Qu.:0.500  
##  Median : 1.25   Median : 2.00   Median :1.000   Median :1.000  
##  Mean   : 8.00   Mean   :10.19   Mean   :1.100   Mean   :1.125  
##  3rd Qu.: 2.00   3rd Qu.: 3.00   3rd Qu.:1.375   3rd Qu.:2.000  
##  Max.   :67.00   Max.   :68.50   Max.   :2.500   Max.   :2.000  
##  NA's   :22      NA's   :24      NA's   :22      NA's   :20     
##    Phenol_WS       Styrene_OF   Tetrachloroethylene_MR Tetrachloroethylene_OF
##  Min.   :0.500   Min.   :0.50   Min.   : 1.50          Min.   : 0.500        
##  1st Qu.:0.500   1st Qu.:0.50   1st Qu.: 1.50          1st Qu.: 0.750        
##  Median :1.000   Median :0.50   Median : 1.50          Median : 1.000        
##  Mean   :1.125   Mean   :1.00   Mean   : 6.00          Mean   : 5.167        
##  3rd Qu.:1.625   3rd Qu.:1.25   3rd Qu.: 8.25          3rd Qu.: 7.500        
##  Max.   :2.500   Max.   :2.00   Max.   :15.00          Max.   :14.000        
##  NA's   :20      NA's   :29     NA's   :29             NA's   :29            
##  Tetrachloroethylene_WS Trichloroethylene_MR Trichloroethylene_OF
##  Min.   : 1.000         Min.   :9            Min.   :8.5         
##  1st Qu.: 1.250         1st Qu.:9            1st Qu.:8.5         
##  Median : 1.500         Median :9            Median :8.5         
##  Mean   : 5.333         Mean   :9            Mean   :8.5         
##  3rd Qu.: 7.500         3rd Qu.:9            3rd Qu.:8.5         
##  Max.   :13.500         Max.   :9            Max.   :8.5         
##  NA's   :29             NA's   :31           NA's   :31          
##  Trichloroethylene_WS Doesthebuildinghaveascentfreepolicyimplemented
##  Min.   :1.000        Length:32                                     
##  1st Qu.:2.875        Class :character                              
##  Median :4.750        Mode  :character                              
##  Mean   :4.750                                                      
##  3rd Qu.:6.625                                                      
##  Max.   :8.500                                                      
##  NA's   :30                                                         
##  Numberoffloors Total_area_building WhatistheareaofeachfloorInsquarefeet
##  Min.   : 1.0   Min.   :  1000      Length:32                           
##  1st Qu.: 1.0   1st Qu.:  3164      Class :character                    
##  Median : 2.5   Median : 13125      Mode  :character                    
##  Mean   : 4.0   Mean   : 70391                                          
##  3rd Qu.: 3.5   3rd Qu.: 85000                                          
##  Max.   :20.0   Max.   :450828                                          
##  NA's   :4      NA's   :3                                               
##  BuildingconstructionyearYearPleaseSelect  Building_Age   
##  Min.   :1900                             Min.   :  8.00  
##  1st Qu.:1968                             1st Qu.: 26.25  
##  Median :1977                             Median : 48.00  
##  Mean   :1978                             Mean   : 47.07  
##  3rd Qu.:1999                             3rd Qu.: 56.75  
##  Max.   :2017                             Max.   :125.00  
##  NA's   :2                                NA's   :2       
##  Pleasespecifythebuilding’sHVACsystem.Selectallthatapply.Ot Materials_MR  
##  Length:32                                                    Mode:logical  
##  Class :character                                             NA's:32       
##  Mode  :character                                                           
##                                                                             
##                                                                             
##                                                                             
##                                                                             
##    Officetype Meetingroomsize  MR_Occupancy_Grouped MR_Size_Categories
##  Min.   :1    Min.   :  11.0   Min.   :1.0          Min.   :1.0       
##  1st Qu.:1    1st Qu.: 205.5   1st Qu.:1.0          1st Qu.:1.0       
##  Median :2    Median : 288.0   Median :1.5          Median :1.5       
##  Mean   :2    Mean   : 467.0   Mean   :1.5          Mean   :1.5       
##  3rd Qu.:3    3rd Qu.: 388.0   3rd Qu.:2.0          3rd Qu.:2.0       
##  Max.   :3    Max.   :4500.0   Max.   :2.0          Max.   :2.0       
##                                                                       
##  Meeting_room_size_grouped Office_Size_Collapsed Office_Size_Categories
##  Min.   :1.00              Min.   :  36.0        Min.   :1.0           
##  1st Qu.:1.75              1st Qu.:  95.0        1st Qu.:1.0           
##  Median :2.00              Median : 189.0        Median :1.5           
##  Mean   :1.75              Mean   : 834.4        Mean   :1.5           
##  3rd Qu.:2.00              3rd Qu.: 450.0        3rd Qu.:2.0           
##  Max.   :2.00              Max.   :5885.0        Max.   :2.0           
##                                                                        
##   Washroomsize   Washroom_Size_Categories Openworkstationssize
##  Min.   : 20.0   Min.   :1.0              Min.   :  36        
##  1st Qu.: 78.0   1st Qu.:1.0              1st Qu.: 120        
##  Median :138.0   Median :1.5              Median : 411        
##  Mean   :164.8   Mean   :1.5              Mean   :1750        
##  3rd Qu.:201.8   3rd Qu.:2.0              3rd Qu.:2560        
##  Max.   :700.0   Max.   :2.0              Max.   :5885        
##                                           NA's   :19          
##  Meetingroomoccupancy Washroom_Occupancy_Grouped Office_Occupancy_Grouped
##  Min.   :  0.00       Min.   :1.000              Min.   :1.000           
##  1st Qu.:  6.00       1st Qu.:1.000              1st Qu.:1.000           
##  Median : 10.00       Median :2.000              Median :2.000           
##  Mean   : 18.19       Mean   :1.594              Mean   :1.562           
##  3rd Qu.: 12.00       3rd Qu.:2.000              3rd Qu.:2.000           
##  Max.   :220.00       Max.   :2.000              Max.   :2.000           
##                                                                          
##  Office_Occupancy_Collapsed Washroomoccupancy MR_CO2_Rategen   
##  Min.   : 1.00              Min.   :  0.000   Min.   :0.00000  
##  1st Qu.: 1.00              1st Qu.:  1.000   1st Qu.:0.03120  
##  Median : 4.00              Median :  1.000   Median :0.05200  
##  Mean   :12.62              Mean   :  7.875   Mean   :0.09458  
##  3rd Qu.:13.00              3rd Qu.:  4.250   3rd Qu.:0.06240  
##  Max.   :80.00              Max.   :100.000   Max.   :1.14400  
##                                                                
##  MR_co2gen_conversion MR_co2_inandout  Net_co2_converted   
##  Min.   :0.000e+00    Min.   : -7.00   Min.   :-7.000e-06  
##  1st Qu.:3.120e-05    1st Qu.: 68.75   1st Qu.: 6.875e-05  
##  Median :5.200e-05    Median :127.50   Median : 1.275e-04  
##  Mean   :9.457e-05    Mean   :217.02   Mean   : 2.170e-04  
##  3rd Qu.:6.240e-05    3rd Qu.:284.75   3rd Qu.: 2.848e-04  
##  Max.   :1.144e-03    Max.   :947.00   Max.   : 9.470e-04  
##                                                            
##  Construction_Present OF_CO2_Rategen    OF_co2gen_conversion OF_co2_inandout
##  Length:32            Min.   :0.00520   Min.   :5.200e-06    Min.   :-23.0  
##  Class :character     1st Qu.:0.00520   1st Qu.:5.200e-06    1st Qu.: 90.5  
##  Mode  :character     Median :0.02080   Median :2.080e-05    Median :151.0  
##                       Mean   :0.06565   Mean   :6.565e-05    Mean   :213.7  
##                       3rd Qu.:0.06760   3rd Qu.:6.760e-05    3rd Qu.:279.6  
##                       Max.   :0.41600   Max.   :4.160e-04    Max.   :822.0  
##                                                                             
##  OF_net_co2_converted Ventrate_Office_Final_CFM WS_co2_Rategen   
##  Min.   :-0.0000230   Min.   :-4790.51          Min.   :0.00000  
##  1st Qu.: 0.0000905   1st Qu.:   63.15          1st Qu.:0.00520  
##  Median : 0.0001510   Median :  341.15          Median :0.00520  
##  Mean   : 0.0002137   Mean   :  897.74          Mean   :0.04095  
##  3rd Qu.: 0.0002795   3rd Qu.:  908.31          3rd Qu.:0.02210  
##  Max.   : 0.0008220   Max.   : 8263.63          Max.   :0.52000  
##                                                                  
##  WS_co2gen_Conversion WS_co2_inandout  WS_net_co2_converted
##  Min.   :0.000e+00    Min.   :-106.0   Min.   :-0.0001060  
##  1st Qu.:5.200e-06    1st Qu.: 103.2   1st Qu.: 0.0001033  
##  Median :5.200e-06    Median : 170.5   Median : 0.0001705  
##  Mean   :4.095e-05    Mean   : 217.3   Mean   : 0.0002173  
##  3rd Qu.:2.210e-05    3rd Qu.: 269.9   3rd Qu.: 0.0002699  
##  Max.   :5.200e-04    Max.   : 830.7   Max.   : 0.0008307  
##                                                            
##  Ventrate_Washroom_Final Ventrate_Meetingroom_final_CFM PowerPlants_Present
##  Min.   :-787.01         Min.   : -7870.1               Length:32          
##  1st Qu.:  40.81         1st Qu.:   277.3               Class :character   
##  Median : 115.66         Median :   629.6               Mode  :character   
##  Mean   : 408.47         Mean   :  5723.6                                  
##  3rd Qu.: 346.25         3rd Qu.:  1766.4                                  
##  Max.   :5463.56         Max.   :110181.8                                  
##                          NA's   :1                                         
##  Vent_Washroom      Averageco2meetingroomppm Averageco2officeppm
##  Length:32          Min.   : 393.0           Min.   : 377.0     
##  Class :character   1st Qu.: 468.8           1st Qu.: 490.5     
##  Mode  :character   Median : 527.5           Median : 551.0     
##                     Mean   : 617.0           Mean   : 613.7     
##                     3rd Qu.: 684.8           3rd Qu.: 679.5     
##                     Max.   :1347.0           Max.   :1222.0     
##                                                                 
##  Averageco2washroomppm CO2_Average_Daily CO2_IAQ_Acceptable_EU
##  Min.   : 294.0        Min.   : 378.7    Min.   :1.00         
##  1st Qu.: 503.2        1st Qu.: 489.3    1st Qu.:1.00         
##  Median : 570.5        Median : 557.3    Median :1.00         
##  Mean   : 617.3        Mean   : 616.0    Mean   :1.25         
##  3rd Qu.: 669.9        3rd Qu.: 693.5    3rd Qu.:1.00         
##  Max.   :1230.7        Max.   :1216.1    Max.   :3.00         
##                                                               
##  Symptoms_reported Policy_compliance_percent Openworkstation_occupancy
##  Min.   :1.000     Min.   :23.00             Min.   : 1.00            
##  1st Qu.:1.000     1st Qu.:29.00             1st Qu.: 1.00            
##  Median :1.000     Median :44.00             Median :13.00            
##  Mean   :1.357     Mean   :49.12             Mean   :16.17            
##  3rd Qu.:2.000     3rd Qu.:71.00             3rd Qu.:21.00            
##  Max.   :2.000     Max.   :82.00             Max.   :45.00            
##  NA's   :18        NA's   :24                NA's   :20               
##  Officecubiclesoccupancy Privateofficeoccupancy
##  Min.   : 1.00           Length:32             
##  1st Qu.: 3.25           Class :character      
##  Median : 4.00           Mode  :character      
##  Mean   :16.00                                 
##  3rd Qu.:11.25                                 
##  Max.   :80.00                                 
##  NA's   :20                                    
##  Averagecarbonmonoxidemeetingroomppm Averagecarbonmonoxideofficeppm
##  Min.   : 0.000                      Min.   :0.0000                
##  1st Qu.: 0.000                      1st Qu.:0.0000                
##  Median : 0.000                      Median :0.0000                
##  Mean   : 1.818                      Mean   :0.4165                
##  3rd Qu.: 0.000                      3rd Qu.:0.6050                
##  Max.   :18.000                      Max.   :3.0000                
##  NA's   :1                           NA's   :1                     
##  Averagecarbonmonoxidewashroomppm CO_Average_Daily Averagetempmeetingroom
##  Min.   : 0.000                   Min.   :0.000    Min.   :20.60         
##  1st Qu.: 0.000                   1st Qu.:0.000    1st Qu.:21.80         
##  Median : 0.000                   Median :0.330    Median :22.80         
##  Mean   : 1.323                   Mean   :1.335    Mean   :22.98         
##  3rd Qu.: 0.000                   3rd Qu.:0.835    3rd Qu.:23.75         
##  Max.   :21.000                   Max.   :8.670    Max.   :26.90         
##  NA's   :1                        NA's   :1                              
##  Averagetempofficedegreescelcius Averagetempwashroomdegreescelcius
##  Min.   :20.70                   Min.   :20.00                    
##  1st Qu.:21.77                   1st Qu.:22.27                    
##  Median :23.25                   Median :22.80                    
##  Mean   :22.98                   Mean   :22.98                    
##  3rd Qu.:23.82                   3rd Qu.:23.90                    
##  Max.   :25.00                   Max.   :25.20                    
##                                                                   
##  Daily_Average_Temp Relativehumiditymeetingroomrh Relativehumidityoffice
##  Min.   :20.63      Min.   :11.00                 Min.   : 5.90         
##  1st Qu.:22.49      1st Qu.:23.52                 1st Qu.:24.02         
##  Median :22.95      Median :28.85                 Median :31.45         
##  Mean   :22.98      Mean   :32.43                 Mean   :32.25         
##  3rd Qu.:23.48      3rd Qu.:34.77                 3rd Qu.:36.58         
##  Max.   :25.17      Max.   :74.10                 Max.   :68.60         
##                                                                         
##  Relativehumiditywashroom RH_daily_average pm2.5meetingroommgm3
##  Min.   : 9.20            Min.   :10.87    Min.   :0.000000    
##  1st Qu.:26.32            1st Qu.:25.92    1st Qu.:0.001000    
##  Median :31.45            Median :30.32    Median :0.001500    
##  Mean   :33.52            Mean   :32.73    Mean   :0.004031    
##  3rd Qu.:34.42            3rd Qu.:34.03    3rd Qu.:0.006250    
##  Max.   :70.00            Max.   :70.90    Max.   :0.017000    
##                                                                
##   pm2.5office      pm2.5washroom      pm2.5_daily_average
##  Min.   :0.00000   Min.   :0.000000   Min.   :0.0000000  
##  1st Qu.:0.00000   1st Qu.:0.000000   1st Qu.:0.0006667  
##  Median :0.00150   Median :0.001000   Median :0.0018333  
##  Mean   :0.00375   Mean   :0.004437   Mean   :0.0040729  
##  3rd Qu.:0.00300   3rd Qu.:0.004250   3rd Qu.:0.0046667  
##  Max.   :0.03500   Max.   :0.053000   Max.   :0.0233333  
##                                                          
##  Formaldehydemeetingroomµgm³ Formaldehydeofficeµgm³ Formaldehydewashroomµgm³
##  Min.   : 5.000              Min.   : 4.000         Min.   : 4.00           
##  1st Qu.: 7.025              1st Qu.: 6.975         1st Qu.: 6.55           
##  Median :10.850              Median :10.550         Median : 9.60           
##  Mean   :13.812              Mean   :13.428         Mean   :13.19           
##  3rd Qu.:13.000              3rd Qu.:15.750         3rd Qu.:15.38           
##  Max.   :70.300              Max.   :61.600         Max.   :63.10           
##                                                                             
##  Form_daily_average TVOCOutdoorµgm³  Areaofeachbuildingfloor
##  Min.   : 4.500     Min.   :  1.00   Length:32              
##  1st Qu.: 6.683     1st Qu.: 18.00   Class :character       
##  Median :10.433     Median : 29.00   Mode  :character       
##  Mean   :13.477     Mean   : 74.22                          
##  3rd Qu.:13.583     3rd Qu.: 71.25                          
##  Max.   :65.000     Max.   :390.00                          
##                                                             
##  Buildingconstructionmaterials Wood_Construction_Materials Wood_materials 
##  Length:32                     Length:32                   Min.   :1.000  
##  Class :character              Class :character            1st Qu.:1.000  
##  Mode  :character              Mode  :character            Median :2.000  
##                                                            Mean   :1.519  
##                                                            3rd Qu.:2.000  
##                                                            Max.   :2.000  
##                                                            NA's   :5      
##  Occupantnumberinbuilding Paintinginlastyear Newcarpetinstallationinlastyear
##  Min.   :    1.5          Min.   :1.000      Min.   :1.000                  
##  1st Qu.:   18.5          1st Qu.:1.000      1st Qu.:1.000                  
##  Median :   32.5          Median :1.000      Median :1.000                  
##  Mean   : 4050.2          Mean   :1.222      Mean   :1.185                  
##  3rd Qu.:  612.5          3rd Qu.:1.000      3rd Qu.:1.000                  
##  Max.   :45950.0          Max.   :2.000      Max.   :2.000                  
##  NA's   :6                NA's   :5          NA's   :5                      
##  Newfurnitureinstallation Renos_General  
##  Min.   :1.000            Min.   :1.000  
##  1st Qu.:1.000            1st Qu.:1.000  
##  Median :1.000            Median :1.000  
##  Mean   :1.333            Mean   :1.444  
##  3rd Qu.:2.000            3rd Qu.:2.000  
##  Max.   :2.000            Max.   :2.000  
##  NA's   :5                NA's   :5      
##  Didthebuildingundergoanyotherrenovations
##  Min.   :1.000                           
##  1st Qu.:1.000                           
##  Median :1.000                           
##  Mean   :1.296                           
##  3rd Qu.:2.000                           
##  Max.   :2.000                           
##  NA's   :5                               
##  Onwhichdaysoftheweekiscleaningtypicallyperformed
##  Length:32                                       
##  Class :character                                
##  Mode  :character                                
##                                                  
##                                                  
##                                                  
##                                                  
##  Duringwhichhoursdoesthecleaningusuallytakeplace
##  Length:32                                      
##  Class :character                               
##  Mode  :character                               
##                                                 
##                                                 
##                                                 
##                                                 
##  WhatcleaningmethodsareutilizedSelectallthatapply.SelectedChoice
##  Length:32                                                      
##  Class :character                                               
##  Mode  :character                                               
##                                                                 
##                                                                 
##                                                                 
##                                                                 
##  Cleaningproduts    Natureofcleaningproducts
##  Length:32          Min.   :1.000           
##  Class :character   1st Qu.:1.000           
##  Mode  :character   Median :2.000           
##                     Mean   :1.778           
##                     3rd Qu.:2.000           
##                     Max.   :3.000           
##                     NA's   :5               
##  PleasefillinthefollowinginformationregardingspecialusespacesAret
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  PleasefillinthefollowinginformationregardingspecialusespacesAr_A
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  PleasefillinthefollowinginformationregardingspecialusespacesAr_B
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  PleasefillinthefollowinginformationregardingspecialusespacesAr_C
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  PleasefillinthefollowinginformationregardingspecialusespacesAr_D
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  PleasefillinthefollowinginformationregardingspecialusespacesAr_E
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  PleasefillinthefollowinginformationregardingspecialusespacesAr_F
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  PleasefillinthefollowinginformationregardingspecialusespacesAr_G
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  PleasefillinthefollowinginformationregardingspecialusespacesAr_H
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  Wallcoveringspresent Upholsteredfurniturepresent Paintedfurniturepresent
##  Length:32            Length:32                   Length:32              
##  Class :character     Class :character            Class :character       
##  Mode  :character     Mode  :character            Mode  :character       
##                                                                          
##                                                                          
##                                                                          
##                                                                          
##  Laminateorcompositewoodfurniturepresent  Carpeting         Sitelocationtype  
##  Length:32                               Length:32          Length:32         
##  Class :character                        Class :character   Class :character  
##  Mode  :character                        Mode  :character   Mode  :character  
##                                                                               
##                                                                               
##                                                                               
##                                                                               
##  Isairtanklessthan50mawayfrommajorroadwaysorbusystreetswithidling
##  Mode:logical                                                    
##  NA's:32                                                         
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  Areanyofthefollowingoutdoorcontaminantsourcespresentnearyourbuil
##  Length:32                                                       
##  Class :character                                                
##  Mode  :character                                                
##                                                                  
##                                                                  
##                                                                  
##                                                                  
##  IndustrialStacks_Present GolfcourseswPesticides_Present Heavy_Traffic_Present
##  Min.   :1.00             Min.   :1.00                   Length:32            
##  1st Qu.:1.00             1st Qu.:1.00                   Class :character     
##  Median :1.00             Median :1.00                   Mode  :character     
##  Mean   :1.36             Mean   :1.44                                        
##  3rd Qu.:2.00             3rd Qu.:2.00                                        
##  Max.   :2.00             Max.   :2.00                                        
##  NA's   :7                NA's   :7                                           
##  VehicleIdilling_Present ParkingGarages_present LoadingDocks_Present
##  Length:32               Length:32              Length:32           
##  Class :character        Class :character       Class :character    
##  Mode  :character        Mode  :character       Mode  :character    
##                                                                     
##                                                                     
##                                                                     
##                                                                     
##  Airports_present   SmokingAreas_Present Agriculture_present
##  Length:32          Min.   :1.00         Min.   :1.00       
##  Class :character   1st Qu.:1.00         1st Qu.:1.00       
##  Mode  :character   Median :1.00         Median :1.00       
##                     Mean   :1.44         Mean   :1.36       
##                     3rd Qu.:2.00         3rd Qu.:2.00       
##                     Max.   :2.00         Max.   :2.00       
##                     NA's   :7            NA's   :7          
##  OilRefineries_Present EmergencyGenerators_Present Garbagedumps_Present
##  Min.   :1.00          Length:32                   Length:32           
##  1st Qu.:1.00          Class :character            Class :character    
##  Median :1.00          Mode  :character            Mode  :character    
##  Mean   :1.36                                                          
##  3rd Qu.:2.00                                                          
##  Max.   :2.00                                                          
##  NA's   :7                                                             
##  Log_Acetone_MR   Log_Acetone_OF  Log_Acetone_WS  Log_Acetaldehyde_MR
##  Min.   :0.1761   Min.   :0.699   Min.   :0.699   Min.   :0.3979     
##  1st Qu.:1.1175   1st Qu.:1.051   1st Qu.:1.036   1st Qu.:0.8266     
##  Median :1.2730   Median :1.352   Median :1.327   Median :1.2430     
##  Mean   :1.3445   Mean   :1.429   Mean   :1.385   Mean   :1.2141     
##  3rd Qu.:1.5023   3rd Qu.:1.687   3rd Qu.:1.591   3rd Qu.:1.4731     
##  Max.   :2.4771   Max.   :2.462   Max.   :2.439   Max.   :2.0022     
##                   NA's   :1                       NA's   :5          
##  Log_Acetaldehyde_OF Log_Acetaldehyde_WS Log_Fornaldehyde_WS
##  Min.   :0.6021      Min.   :-0.301      Min.   :0.6021     
##  1st Qu.:0.9542      1st Qu.: 1.097      1st Qu.:0.8162     
##  Median :1.2553      Median : 1.352      Median :0.9822     
##  Mean   :1.2866      Mean   : 1.308      Mean   :1.0164     
##  3rd Qu.:1.5441      3rd Qu.: 1.681      3rd Qu.:1.1867     
##  Max.   :2.1139      Max.   : 2.230      Max.   :1.8000     
##  NA's   :5           NA's   :3                              
##  Log_Fornaldehyde_MR Log_Fornaldehyde_OF Log_Toluene_MR    Log_Toluene_OF  
##  Min.   :0.6990      Min.   :0.6021      Min.   :-0.3010   Min.   :0.0000  
##  1st Qu.:0.8462      1st Qu.:0.8428      1st Qu.: 0.1761   1st Qu.:0.3010  
##  Median :1.0341      Median :1.0230      Median : 0.3979   Median :0.3979  
##  Mean   :1.0374      Mean   :1.0323      Mean   : 0.4952   Mean   :0.5004  
##  3rd Qu.:1.1139      3rd Qu.:1.1973      3rd Qu.: 0.6404   3rd Qu.:0.5441  
##  Max.   :1.8470      Max.   :1.7896      Max.   : 2.3522   Max.   :2.3118  
##                                          NA's   :2         NA's   :2       
##  Log_Toluene_WS    Log_TVOC_MR     Log_TVOC_OF     Log_TVOC_WS   
##  Min.   :0.0000   Min.   :1.813   Min.   :1.863   Min.   :1.932  
##  1st Qu.:0.0000   1st Qu.:2.261   1st Qu.:2.378   1st Qu.:2.431  
##  Median :0.3010   Median :2.574   Median :2.633   Median :2.646  
##  Mean   :0.4457   Mean   :2.641   Mean   :2.691   Mean   :2.679  
##  3rd Qu.:0.5441   3rd Qu.:2.838   3rd Qu.:2.849   3rd Qu.:2.942  
##  Max.   :2.3424   Max.   :3.872   Max.   :3.833   Max.   :3.854  
##  NA's   :1                                                       
##  Log_Xylene_WS     Log_Xylene_MR    
##  Min.   :-0.3010   Min.   :-0.3010  
##  1st Qu.: 0.0000   1st Qu.: 0.0000  
##  Median : 0.3010   Median : 0.1761  
##  Mean   : 0.4329   Mean   : 0.3803  
##  3rd Qu.: 0.7386   3rd Qu.: 0.6990  
##  Max.   : 2.3424   Max.   : 2.3617  
##  NA's   :9         NA's   :7

Comparing with wilcoxon rank sum

compare_means(alpha_pinene_MR ~ Policy, data = IAQ.data)
## # A tibble: 1 × 8
##   .y.             group1 group2     p p.adj p.format p.signif method  
##   <chr>           <chr>  <chr>  <dbl> <dbl> <chr>    <chr>    <chr>   
## 1 alpha_pinene_MR 1      2      0.864  0.86 0.86     ns       Wilcoxon
compare_means(alpha_pinene_OF ~ Policy, data = IAQ.data)
## # A tibble: 1 × 8
##   .y.             group1 group2     p p.adj p.format p.signif method  
##   <chr>           <chr>  <chr>  <dbl> <dbl> <chr>    <chr>    <chr>   
## 1 alpha_pinene_OF 1      2      0.352  0.35 0.35     ns       Wilcoxon
compare_means(alpha_pinene_WS ~ Policy, data = IAQ.data)
## # A tibble: 1 × 8
##   .y.             group1 group2     p p.adj p.format p.signif method  
##   <chr>           <chr>  <chr>  <dbl> <dbl> <chr>    <chr>    <chr>   
## 1 alpha_pinene_WS 1      2      0.308  0.31 0.31     ns       Wilcoxon
compare_means(Isobutylene_MR ~ Policy, data = IAQ.data)
## # A tibble: 1 × 8
##   .y.            group1 group2      p p.adj p.format p.signif method  
##   <chr>          <chr>  <chr>   <dbl> <dbl> <chr>    <chr>    <chr>   
## 1 Isobutylene_MR 1      2      0.0731 0.073 0.073    ns       Wilcoxon
compare_means(isobutylene_OF ~ Policy, data = IAQ.data)
## # A tibble: 1 × 8
##   .y.            group1 group2       p  p.adj p.format p.signif method  
##   <chr>          <chr>  <chr>    <dbl>  <dbl> <chr>    <chr>    <chr>   
## 1 isobutylene_OF 1      2      0.00519 0.0052 0.0052   **       Wilcoxon
compare_means(isobutylene_WS ~ Policy, data = IAQ.data)
## # A tibble: 1 × 8
##   .y.            group1 group2      p p.adj p.format p.signif method  
##   <chr>          <chr>  <chr>   <dbl> <dbl> <chr>    <chr>    <chr>   
## 1 isobutylene_WS 1      2      0.0777 0.078 0.078    ns       Wilcoxon

Graphics with wilcoxon rank sum comparisons

stat.test <- ASEQ_data %>%
  group_by(Site) %>%
  wilcox_test(Isobutylene ~ Policy) %>%
  adjust_pvalue(method = "bonferroni") %>%
  add_significance() %>%
  add_xy_position(x = "Site", dodge = 0.8) # Ensure dodge matches the bar plot
stat.test
## # A tibble: 3 × 15
##   Site     .y.   group1 group2    n1    n2 statistic       p  p.adj p.adj.signif
##   <fct>    <chr> <chr>  <chr>  <int> <int>     <dbl>   <dbl>  <dbl> <chr>       
## 1 Meeting… Isob… Scent… No Sc…     8    13      27   0.0731  0.219  ns          
## 2 Office   Isob… Scent… No Sc…     6    10       4.5 0.00519 0.0156 *           
## 3 Washroom Isob… Scent… No Sc…     8    11      22.5 0.0777  0.233  ns          
## # ℹ 5 more variables: y.position <dbl>, groups <named list>, x <dbl>,
## #   xmin <dbl>, xmax <dbl>
Summarize(Isobutylene ~ Site + Policy, ASEQ_data)
##           Site               Policy  n nvalid     mean         sd min    Q1
## 1 Meeting Room    Scent-free policy 16      8 1.300000  0.9739463 0.4 0.500
## 2       Office    Scent-free policy 16      6 0.750000  0.2738613 0.5 0.500
## 3     Washroom    Scent-free policy 16      8 2.125000  2.4164614 0.5 0.875
## 4 Meeting Room No Scent-free policy 16     13 5.538462 11.6537933 0.5 1.000
## 5       Office No Scent-free policy 16     10 6.050000 11.1491156 1.0 1.250
## 6     Washroom No Scent-free policy 16     11 5.954546 11.4115173 1.0 1.500
##   median    Q3  max
## 1   1.00 1.750  3.0
## 2   0.75 1.000  1.0
## 3   1.00 2.125  6.5
## 4   2.00 4.000 44.0
## 5   2.50 3.875 37.5
## 6   2.00 3.750 40.0
p <- ggpar(ggbarplot(
  ASEQ_data, x = "Site", y = "Isobutylene",
  fill = "Policy", palette = "grey",
#    fill = "Policy", palette = "jco",

#  add = "median", 
    add = "mean",
  position = position_dodge(0.8)
) +
stat_pvalue_manual(stat.test, label = "p", tip.length = 0.01, y.position = 6.5), ylim = c(0, 7), title = "a) 1-Propene, 2-methyl- (Isobutylene) Cas 115-11-7", ylab = "Mean Isobutylene", xlab = "", legend.title = element_blank())
p
## Ignoring unknown labels:
## • colour : <object>
## • linetype : <object>
## • shape : <object>
## Warning: `label` cannot be a <ggplot2::element_blank> object.
plot of chunk unnamed-chunk-6
# 2. Acetone
stat.test1 <- ASEQ_data %>%
  group_by(Site) %>%
  wilcox_test(Acetone ~ Policy) %>%
  adjust_pvalue(method = "bonferroni") %>%
  add_significance() %>%
  add_xy_position(x = "Site", dodge = 0.8) # Ensure dodge matches the bar plot
stat.test1
## # A tibble: 3 × 15
##   Site    .y.   group1 group2    n1    n2 statistic       p   p.adj p.adj.signif
##   <fct>   <chr> <chr>  <chr>  <int> <int>     <dbl>   <dbl>   <dbl> <chr>       
## 1 Meetin… Acet… Scent… No Sc…    16    16      76.5 0.0545  0.164   ns          
## 2 Office  Acet… Scent… No Sc…    15    16      46.5 0.00388 0.0116  *           
## 3 Washro… Acet… Scent… No Sc…    16    16      41   0.00111 0.00333 **          
## # ℹ 5 more variables: y.position <dbl>, groups <named list>, x <dbl>,
## #   xmin <dbl>, xmax <dbl>
Summarize(Acetone ~ Site + Policy, ASEQ_data)
##           Site               Policy  n nvalid     mean       sd  min     Q1
## 1 Meeting Room    Scent-free policy 16     16 19.06250 15.83969  1.5 11.875
## 2       Office    Scent-free policy 16     15 18.93333 13.81623  5.0 10.250
## 3     Washroom    Scent-free policy 16     16 16.65625 11.03588  5.0  8.750
## 4 Meeting Room No Scent-free policy 16     16 69.31250 90.49767  4.5 14.000
## 5       Office No Scent-free policy 16     16 79.31250 88.22204 11.0 18.750
## 6     Washroom No Scent-free policy 16     16 64.40625 68.27011 11.0 20.625
##   median     Q3   max
## 1  15.25 21.125  71.5
## 2  11.50 24.500  52.0
## 3  14.75 21.625  45.5
## 4  29.25 82.500 300.0
## 5  41.00 88.000 290.0
## 6  36.75 83.875 275.0
# 2. Create the grouped bar plot
p1 <- ggpar(ggbarplot(
  ASEQ_data, x = "Site", y = "Acetone",
  fill = "Policy", palette = "grey",
#  add = "median", 
    add = "mean",
  position = position_dodge(0.8)
) +
# 3. Add p-values
stat_pvalue_manual(stat.test1, label = "p", tip.length = 0.01, y.position = 82), ylim = c(0, 90), title = "b) Acetone Cas 67-64-1", ylab = "Mean Acetone", xlab = "", legend.title = element_blank())
p1
## Ignoring unknown labels:
## • colour : <object>
## • linetype : <object>
## • shape : <object>
## Warning: `label` cannot be a <ggplot2::element_blank> object.
plot of chunk unnamed-chunk-6
# 3. Butane
stat.test2 <- ASEQ_data %>%
  group_by(Site) %>%
  wilcox_test(Butane ~ Policy) %>%
  adjust_pvalue(method = "bonferroni") %>%
  add_significance() %>%
  add_xy_position(x = "Site", dodge = 0.8) # Ensure dodge matches the bar plot
stat.test2
## # A tibble: 3 × 15
##   Site    .y.   group1 group2    n1    n2 statistic       p   p.adj p.adj.signif
##   <fct>   <chr> <chr>  <chr>  <int> <int>     <dbl>   <dbl>   <dbl> <chr>       
## 1 Meetin… Buta… Scent… No Sc…    15    16      39   1.38e-3 0.00414 **          
## 2 Office  Buta… Scent… No Sc…    13    16      32   1.64e-3 0.00492 **          
## 3 Washro… Buta… Scent… No Sc…    16    16      38.5 7.58e-4 0.00227 **          
## # ℹ 5 more variables: y.position <dbl>, groups <named list>, x <dbl>,
## #   xmin <dbl>, xmax <dbl>
Summarize(Butane ~ Site + Policy, ASEQ_data)
##           Site               Policy  n nvalid      mean         sd min    Q1
## 1 Meeting Room    Scent-free policy 16     15  2.766667   3.755314 0.5 0.500
## 2       Office    Scent-free policy 16     13  2.653846   3.799038 0.5 1.000
## 3     Washroom    Scent-free policy 16     16  2.718750   3.628447 0.5 0.500
## 4 Meeting Room No Scent-free policy 16     16 41.937500 101.348717 1.5 3.000
## 5       Office No Scent-free policy 16     16 33.656250  79.996608 1.0 3.875
## 6     Washroom No Scent-free policy 16     16 36.625000  86.850350 2.0 3.875
##   median     Q3   max
## 1   1.00  2.750  14.0
## 2   1.50  2.000  14.5
## 3   1.00  2.750  14.0
## 4   5.00  8.375 370.0
## 5   5.75  8.875 305.0
## 6   5.75 13.750 345.0
p2 <- ggpar(ggbarplot(
  ASEQ_data, x = "Site", y = "Butane",
  fill = "Policy", palette = "grey",
#  add = "median", 
    add = "mean",
  position = position_dodge(0.8)
) +
stat_pvalue_manual(stat.test2, label = "p.adj", tip.length = 0.01, y.position = 43), ylim = c(0, 45), title = "c) Butane Cas 106-97-8", ylab = "Mean Butane", xlab = "") + theme(legend.position = "none")

p2
plot of chunk unnamed-chunk-6
# 4. Butane2Meth
stat.test3 <- ASEQ_data %>%
  group_by(Site) %>%
  wilcox_test(Butane2Meth ~ Policy) %>%
  adjust_pvalue(method = "bonferroni") %>%
  add_significance() %>%
  add_xy_position(x = "Site", dodge = 0.8) # Ensure dodge matches the bar plot
stat.test3
## # A tibble: 3 × 15
##   Site        .y.   group1 group2    n1    n2 statistic     p p.adj p.adj.signif
##   <fct>       <chr> <chr>  <chr>  <int> <int>     <dbl> <dbl> <dbl> <chr>       
## 1 Meeting Ro… Buta… Scent… No Sc…    15    15        73 0.103 0.309 ns          
## 2 Office      Buta… Scent… No Sc…    15    14        71 0.142 0.426 ns          
## 3 Washroom    Buta… Scent… No Sc…    16    15        61 0.02  0.06  ns          
## # ℹ 5 more variables: y.position <dbl>, groups <named list>, x <dbl>,
## #   xmin <dbl>, xmax <dbl>
Summarize(Butane2Meth ~ Site + Policy, ASEQ_data)
##           Site               Policy  n nvalid      mean        sd min    Q1
## 1 Meeting Room    Scent-free policy 16     15  3.566667  3.250641 0.5 1.250
## 2       Office    Scent-free policy 16     15  3.666667  2.919556 1.0 1.250
## 3     Washroom    Scent-free policy 16     16  3.437500  3.506541 1.0 1.375
## 4 Meeting Room No Scent-free policy 16     15 38.266667 98.268740 1.0 2.000
## 5       Office No Scent-free policy 16     14 37.750000 99.123806 1.0 2.625
## 6     Washroom No Scent-free policy 16     15 35.833333 98.217628 1.5 2.500
##   median     Q3 max
## 1    2.5  5.000  12
## 2    2.5  5.500  11
## 3    2.0  4.125  14
## 4    3.5 12.250 380
## 5    4.0  7.625 375
## 6    4.0  8.750 385
p3 <- ggpar(ggbarplot(
  ASEQ_data, x = "Site", y = "Butane2Meth",
  fill = "Policy", palette = "grey",
#  add = "median", 
    add = "mean",
  position = position_dodge(0.8)
) +
stat_pvalue_manual(stat.test3, label = "p", tip.length = 0.01, y.position = 40), ylim = c(0, 45), title = "d) Butane,2-methyl Cas 78-78-4", ylab = "Mean Butane,2-methyl", xlab = "") + theme(legend.position = "none")
p3
plot of chunk unnamed-chunk-6
# 5. Hexane2Methyl
stat.test4 <- ASEQ_data %>%
  group_by(Site) %>%
  wilcox_test(Hexane2Methyl ~ Policy) %>%
  adjust_pvalue(method = "bonferroni") %>%
  add_significance() %>%
  add_xy_position(x = "Site", dodge = 0.8) # Ensure dodge matches the bar plot
stat.test4
## # A tibble: 3 × 15
##   Site      .y.   group1 group2    n1    n2 statistic      p  p.adj p.adj.signif
##   <fct>     <chr> <chr>  <chr>  <int> <int>     <dbl>  <dbl>  <dbl> <chr>       
## 1 Meeting … Hexa… Scent… No Sc…     6     9      13.5 0.12   0.36   ns          
## 2 Office    Hexa… Scent… No Sc…     6     9      14   0.136  0.408  ns          
## 3 Washroom  Hexa… Scent… No Sc…     8     9      14   0.0333 0.0999 ns          
## # ℹ 5 more variables: y.position <dbl>, groups <named list>, x <dbl>,
## #   xmin <dbl>, xmax <dbl>
Summarize(Hexane2Methyl ~ Site + Policy, ASEQ_data)
##           Site               Policy  n nvalid      mean        sd min    Q1
## 1 Meeting Room    Scent-free policy 16      6  1.583333  1.319722 0.5 0.625
## 2       Office    Scent-free policy 16      6  2.000000  2.509980 0.5 0.625
## 3     Washroom    Scent-free policy 16      8 12.687500 33.867323 0.5 0.500
## 4 Meeting Room No Scent-free policy 16      9 14.722222 33.967918 1.0 1.000
## 5       Office No Scent-free policy 16      9 12.111111 27.237127 1.0 1.500
## 6     Washroom No Scent-free policy 16      9 13.944444 33.273905 0.5 1.500
##   median    Q3   max
## 1   1.25 1.875   4.0
## 2   1.00 1.750   7.0
## 3   0.50 1.125  96.5
## 4   2.00 7.500 105.0
## 5   2.00 5.500  84.5
## 6   2.00 5.000 102.5
p4 <- ggpar(ggbarplot(
  ASEQ_data, x = "Site", y = "Hexane2Methyl",
  fill = "Policy", palette = "grey",
#  add = "median", 
    add = "mean",
  position = position_dodge(0.8)
) +
stat_pvalue_manual(stat.test4, label = "p", tip.length = 0.01, y.position = 15), ylim = c(0, 17), title = "e) Hexane,2-methyl Cas 591-76-4", ylab = "Mean Hexane,2-methyl", xlab = "") + theme(legend.position = "none")
p4
plot of chunk unnamed-chunk-6
# 6. Pentane
stat.test5 <- ASEQ_data %>%
  group_by(Site) %>%
  wilcox_test(Pentane ~ Policy) %>%
  adjust_pvalue(method = "bonferroni") %>%
  add_significance() %>%
  add_xy_position(x = "Site", dodge = 0.8) # Ensure dodge matches the bar plot
stat.test5
## # A tibble: 3 × 15
##   Site     .y.   group1 group2    n1    n2 statistic       p  p.adj p.adj.signif
##   <fct>    <chr> <chr>  <chr>  <int> <int>     <dbl>   <dbl>  <dbl> <chr>       
## 1 Meeting… Pent… Scent… No Sc…    13    16      66   0.0992  0.298  ns          
## 2 Office   Pent… Scent… No Sc…    11    15      45.5 0.0579  0.174  ns          
## 3 Washroom Pent… Scent… No Sc…    11    15      32   0.00935 0.0280 *           
## # ℹ 5 more variables: y.position <dbl>, groups <named list>, x <dbl>,
## #   xmin <dbl>, xmax <dbl>
Summarize(Pentane ~ Site + Policy, ASEQ_data)
##           Site               Policy  n nvalid      mean        sd min    Q1
## 1 Meeting Room    Scent-free policy 16     13  5.115385  4.416606 1.0 1.500
## 2       Office    Scent-free policy 16     11  5.772727  5.031718 1.0 1.500
## 3     Washroom    Scent-free policy 16     11  4.681818  4.423080 1.0 1.500
## 4 Meeting Room No Scent-free policy 16     16 37.937500 84.005134 1.0 3.375
## 5       Office No Scent-free policy 16     15 37.933333 79.440873 1.5 5.750
## 6     Washroom No Scent-free policy 16     15 39.933333 88.046024 2.0 3.750
##   median     Q3   max
## 1   4.50  7.500  15.5
## 2   3.50  8.750  16.0
## 3   2.50  7.000  14.5
## 4   6.25 31.625 340.0
## 5   8.50 22.750 305.0
## 6   8.00 20.250 340.0
p5 <- ggpar(ggbarplot(
  ASEQ_data, x = "Site", y = "Pentane",
  fill = "Policy", palette = "grey",
#  add = "median", 
    add = "mean",
  position = position_dodge(0.8)
) +
stat_pvalue_manual(stat.test5, label = "p", tip.length = 0.01, y.position = 41), ylim = c(0, 42), title = "f) Pentane Cas 109-66-0", ylab = "Mean Pentane", xlab = "") + theme(legend.position = "none")
p5
plot of chunk unnamed-chunk-6
# 7. Trichlorofluromethane
stat.test6 <- ASEQ_data %>%
  group_by(Site) %>%
  wilcox_test(Trichlorofluromethane ~ Policy) %>%
  adjust_pvalue(method = "bonferroni") %>%
  add_significance() %>%
  add_xy_position(x = "Site", dodge = 0.8) # Ensure dodge matches the bar plot
stat.test6
## # A tibble: 3 × 15
##   Site       .y.   group1 group2    n1    n2 statistic      p p.adj p.adj.signif
##   <fct>      <chr> <chr>  <chr>  <int> <int>     <dbl>  <dbl> <dbl> <chr>       
## 1 Meeting R… Tric… Scent… No Sc…    10    11      42.5 0.364  1     ns          
## 2 Office     Tric… Scent… No Sc…     9    11      36   0.275  0.825 ns          
## 3 Washroom   Tric… Scent… No Sc…    10    10      24.5 0.0375 0.112 ns          
## # ℹ 5 more variables: y.position <dbl>, groups <named list>, x <dbl>,
## #   xmin <dbl>, xmax <dbl>
Summarize(Trichlorofluromethane ~ Site + Policy, ASEQ_data)
##           Site               Policy  n nvalid      mean        sd min    Q1
## 1 Meeting Room    Scent-free policy 16     10 1.0500000 0.4377975 0.5 0.625
## 2       Office    Scent-free policy 16      9 0.8888889 0.3333333 0.5 0.500
## 3     Washroom    Scent-free policy 16     10 1.0500000 0.8959787 0.5 0.500
## 4 Meeting Room No Scent-free policy 16     11 1.7727273 1.6787441 1.0 1.000
## 5       Office No Scent-free policy 16     11 1.7727273 1.7939292 0.5 1.000
## 6     Washroom No Scent-free policy 16     10 1.6500000 0.9442810 1.0 1.000
##   median  Q3 max
## 1      1 1.5 1.5
## 2      1 1.0 1.5
## 3      1 1.0 3.5
## 4      1 1.5 6.5
## 5      1 1.5 6.0
## 6      1 2.0 3.5
p6 <- ggpar(ggbarplot(
  ASEQ_data, x = "Site", y = "Trichlorofluromethane",
  fill = "Policy", palette = "grey",
#  add = "median", 
    add = "mean",
  position = position_dodge(0.8)
) +
stat_pvalue_manual(stat.test6, label = "p", tip.length = 0.01, y.position = 1.8), ylim = c(0, 2), title = "g) Trichlorofluoro-methane (CFC-11) Cas 75-69-4", ylab = "Mean Trichlorofluoro-methane", xlab = "") + theme(legend.position = "none")
p6
plot of chunk unnamed-chunk-6
# 8. Ethylbenzene
stat.test7 <- ASEQ_data %>%
  group_by(Site) %>%
  wilcox_test(Ethylbenzene ~ Policy) %>%
  adjust_pvalue(method = "bonferroni") %>%
  add_significance() %>%
  add_xy_position(x = "Site", dodge = 0.8) # Ensure dodge matches the bar plot
stat.test7
## # A tibble: 3 × 15
##   Site      .y.   group1 group2    n1    n2 statistic      p  p.adj p.adj.signif
##   <fct>     <chr> <chr>  <chr>  <int> <int>     <dbl>  <dbl>  <dbl> <chr>       
## 1 Meeting … Ethy… Scent… No Sc…     4     3         4 0.593  1      ns          
## 2 Office    Ethy… Scent… No Sc…     5     3         0 0.0325 0.0975 ns          
## 3 Washroom  Ethy… Scent… No Sc…     4     2         3 0.806  1      ns          
## # ℹ 5 more variables: y.position <dbl>, groups <named list>, x <dbl>,
## #   xmin <dbl>, xmax <dbl>
Summarize(Ethylbenzene ~ Site + Policy, ASEQ_data)
##           Site               Policy  n nvalid     mean         sd min    Q1
## 1 Meeting Room    Scent-free policy 16      4  1.37500  0.4787136 1.0  1.00
## 2       Office    Scent-free policy 16      5  1.00000  0.3535534 0.5  1.00
## 3     Washroom    Scent-free policy 16      4  1.75000  0.9574271 1.0  1.00
## 4 Meeting Room No Scent-free policy 16      3 19.66667 31.0577419 0.5  1.75
## 5       Office No Scent-free policy 16      3 17.50000 25.9855729 2.0  2.50
## 6     Washroom No Scent-free policy 16      2 25.50000 34.6482323 1.0 13.25
##   median     Q3  max
## 1   1.25  1.625  2.0
## 2   1.00  1.000  1.5
## 3   1.50  2.250  3.0
## 4   3.00 29.250 55.5
## 5   3.00 25.250 47.5
## 6  25.50 37.750 50.0
p7 <- ggpar(ggbarplot(
  ASEQ_data, x = "Site", y = "Ethylbenzene",
  fill = "Policy", palette = "grey",
#  add = "median", 
    add = "mean",
  position = position_dodge(0.8)
) +
stat_pvalue_manual(stat.test7, label = "p", tip.length = 0.01, y.position = 26), ylim = c(0, 30), title = "h) Ethylbenzene*ab Cas 100-41-4", ylab = "Mean Ethylbenzene", xlab = "") + theme(legend.position = "none")
p7
plot of chunk unnamed-chunk-6
#ggarrange(p, p1, p2, p3, p4, p5, p6, p7, 
#          ncol = 2, nrow = 4)
#ggsave("VOCs.jpg", width = 35, height = 40, units = c("cm"), dpi = 500)
ggarrange(p, p1, p2, p3, p4, p5, p6, p7,
          ncol = 2, nrow = 4)
## Ignoring unknown labels:
## • colour : <object>
## • linetype : <object>
## • shape : <object>
## Warning: `label` cannot be a <ggplot2::element_blank> object.
## Ignoring unknown labels:
## • colour : <object>
## • linetype : <object>
## • shape : <object>
## Warning: `label` cannot be a <ggplot2::element_blank> object.
plot of chunk unnamed-chunk-7