library(ggplot2)
library(dplyr)

Read

df <- read.csv('Data/Counts.csv', sep =',', header=T)
countMatrix_numeric <- df[, 2:ncol(df)]
dim(countMatrix_numeric)
## [1] 21987    47
#Plot line graphs for each sample column
for(i in 1:ncol(countMatrix_numeric)){
plot(countMatrix_numeric[,i], type="l", xlab="Gene", ylab="log counts", main=colnames(countMatrix_numeric)[i])}

sessionInfo()
## R version 4.3.0 (2023-04-21)
## Platform: aarch64-apple-darwin20 (64-bit)
## Running under: macOS 14.0
## 
## Matrix products: default
## BLAS:   /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib 
## LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0
## 
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
## 
## time zone: Australia/Melbourne
## tzcode source: internal
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] dplyr_1.1.2   ggplot2_3.4.3
## 
## loaded via a namespace (and not attached):
##  [1] vctrs_0.6.3       cli_3.6.1         knitr_1.43        rlang_1.1.1      
##  [5] xfun_0.40         highr_0.10        generics_0.1.3    jsonlite_1.8.7   
##  [9] glue_1.6.2        colorspace_2.1-0  htmltools_0.5.6   sass_0.4.7       
## [13] fansi_1.0.4       scales_1.2.1      rmarkdown_2.24    grid_4.3.0       
## [17] evaluate_0.21     munsell_0.5.0     jquerylib_0.1.4   tibble_3.2.1     
## [21] fastmap_1.1.1     yaml_2.3.7        lifecycle_1.0.3   compiler_4.3.0   
## [25] pkgconfig_2.0.3   rstudioapi_0.15.0 digest_0.6.33     R6_2.5.1         
## [29] tidyselect_1.2.0  utf8_1.2.3        pillar_1.9.0      magrittr_2.0.3   
## [33] bslib_0.5.1       withr_2.5.0       tools_4.3.0       gtable_0.3.3     
## [37] cachem_1.0.8