《区域水环境污染数据分析实践》Data analysis practice of regional water environment pollution
中国科学院大学资源与环境学院中国科学院生态环境研究中心
2026-05-26
接下来的课程由我来带着大家一起学习、实践基于R语言的数据分析。
R语言
quarto
library(.)
dplyr::filter(.)
# load a R package library(ggplot2) # plot it based on the functions from `ggplot2` package mtcars |> dplyr::filter(cyl != 8) |> ggplot(aes(hp, mpg, color = am)) + geom_point() + geom_smooth(formula = y ~ x, method = "loess")
# 指定镜像网站并安装扩展包 options(repos = c(CRAN = "https://mirror.tuna.tsinghua.edu.cn/CRAN/")) install.packages("sos") # 当R包不是CRAN标准包,代码放在[github](https://github.com) if (!require(devtools)) install.packages('devtools') devtools::install_github("kjhealy/socviz")
视频