Tag: rnaturalearthdata

Phyloecology of nitrate ammonifiers and their importance relative to denitrifiers in global terrestrial biomes

Steffen, W. et al. Planetary boundaries: guiding human development on a changing planet. Science 347, 1259855 (2015). Article  PubMed  Google Scholar  Kanter, D. R. et al. Nitrogen pollution policy beyond the farm. Nat. Food 1, 27–32 (2020). Article  ADS  Google Scholar  Tian, H. et al. A comprehensive quantification of global…

Continue Reading Phyloecology of nitrate ammonifiers and their importance relative to denitrifiers in global terrestrial biomes

ggplot2 – How can I get equal lan lat grids using WGS84 with ggplot in R

I use am familiar with R and ArcGIS pro. I want to plot maps using WGS84 in R using ggplot. I get equal lat Lon grids in ArcGIS pro while zooming to, say, Germany. But I am not able to get equal grids in R using ggplot2 using WGS84. Following…

Continue Reading ggplot2 – How can I get equal lan lat grids using WGS84 with ggplot in R

r – How to make a magnified inset of a map plot with ggmagnify and ggplot2

For one of the past week’s tidytuesday challenge, the one where Tornado dataset was analyzed, I tried to practice ggmagnify package with ggplot2 to make a magnified inset map of Texas with the US map. So, let me write down the code to demonstrate what I have achieved so far,…

Continue Reading r – How to make a magnified inset of a map plot with ggmagnify and ggplot2

merge (all=T) error – rstudio

I have two installations of RStudio with each different updates of the packages. On the recent packages I get two errors that I don’t have with the previous packages. Can someone tell me what the problem is? Error 1: df_lofreq_3_DEL <- merge(df_lofreq_3_DEL, deletions_VAR_df_sub_freq, by.x=”VAR_MUT”, by.y=”lofreq_del”, all=T) Error in if (all.x)…

Continue Reading merge (all=T) error – rstudio

Degree symbol not appearing in ggplot output using sf file – RStudio IDE

I saw this thread github.com/r-lib/ragg/issues/51 . There is there is the reference to this stopgap: ragg.r-lib.org/#use-ragg-with-knitr which did fix the current problem. Is there a more permanent solution? I am using Windows 11 and :RStudio 2022.12.0+353 “Elsbeth Geranium” Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for WindowsMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,…

Continue Reading Degree symbol not appearing in ggplot output using sf file – RStudio IDE

Learn to draw with Nature Genetics: a simple example of R language ggplot2 drawing a world map

Whole genome resequencing of 445 Lactuca access requests the household history of cultivated lettuce image.png The data of this paper is public. We can try to reproduce the graph used to display the data in the paper with the public data. The first figure uses a map to show the…

Continue Reading Learn to draw with Nature Genetics: a simple example of R language ggplot2 drawing a world map