《区域水环境污染数据分析实践》Data analysis practice of regional water environment pollution
2025-04-09
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")