Tag: rnaturalearth

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

r – How to show the full legend of LISA cluster map using ggplot2

I want to create a LISA cluster map using ggplot2 after calculating local Moran’s I statistics. The following shows how I calculate the local Moran I’s statistics of the world population using rgeoda package. The polygons and population data are obtained from rnaturalearth package. library(rnaturalearth) library(rgeoda) library(sf) world_map <- ne_countries(scale…

Continue Reading r – How to show the full legend of LISA cluster map using ggplot2

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