systemfonts and textshaping have been compiled with different versions of Freetype. Because of this, textshaping will not use the font cache provided by systemfonts
variable
gs
Plot
year
mu
mu_ci
winter_ppt
low
27
1900
-1.739341
0.4010559
winter_ppt
low
27
1901
-2.393825
0.2053101
winter_ppt
low
27
1902
-1.801620
0.4045216
winter_ppt
low
27
1903
-2.597147
0.4886096
winter_ppt
low
27
1904
-1.495304
0.5284416
winter_ppt
low
27
1905
-3.046124
0.2218432
Set species and variable of interest
Show code
sp ="pinus_edulis"voi ="winter_ppt"
Transform data
Show code
sub <- dat |>filter( variable == voi ) |>select(- variable ) |>mutate(year =paste0("Y", year),plot_name =paste0("P", Plot),mu =if_else(sign(mu + mu_ci) *sign(mu - mu_ci) ==-1,0, mu ) ) |>select( gs, plot_name, year, mu ) |>arrange( gs, plot_name, year ) |>distinct() sub |>head() |> kableExtra::kable()
gs
plot_name
year
mu
high
P107
Y1928
1.2133467
high
P107
Y1929
0.6882198
high
P107
Y1931
0.0000000
high
P107
Y1932
0.0000000
high
P107
Y1933
0.0000000
high
P107
Y1934
2.5141601
Install / Load timecourseRnaseq
Install the latest version of the package from GitHub.
Several packages allow you to install from github, we will use the renv package.
Show code
if (!requireNamespace("renv", quietly =TRUE)) {install.packages("renv")}
Once renv is installed, get the latest version of the timecourseRnaseq package, and the pheatmap package
Show code
if (!requireNamespace("timecourseRnaseq", quietly =TRUE)) { renv::install("biplabendu/timecourseRnaseq")}if (!requireNamespace("pheatmap", quietly =TRUE)) { renv::install("pheatmap") # you can use renv to install from CRAN as well}