Description Usage Arguments Value Author(s) Examples
View source: R/mapAccessions.R
this function returns a map with points showing where accessions are located.
1 | mapAccessions(df, long, lat, y = NULL)
|
df |
object of class "data.frame" with coordinates of accessions and target variable. |
long |
character. Column name from |
lat |
character. Column name from |
y |
Default: NULL, column name from |
A world map with plotted points showing locations of accessions.
Khadija Aouzal, Zakaria Kehel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | if(interactive()){
# Loading FIGS subset for wheat sodicity resistance
data(FIGS)
# World Map showing locations of accessions
mapAccessions(df = FIGS, long = "Longitude", lat = "Latitude")
# Map plotting locations of accessions with points coloured
# based on a gradient scale of SodicityIndex values
mapAccessions(FIGS, long = "Longitude", lat = "Latitude",
y = "SodicityIndex")
# Map plotting locations of accessions with points
# coloured based on levels of y
mapAccessions(FIGS, long = "Longitude", lat = "Latitude",
y = "PopulationType")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.