mapAccessions {icardaFIGSr} | R Documentation |
Plotting Accessions on Map.
Description
this function returns a map with points showing where accessions are located.
Usage
mapAccessions(df, long, lat, y = NULL)
Arguments
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 |
Value
A world map with plotted points showing locations of accessions.
Author(s)
Khadija Aouzal, Zakaria Kehel
Examples
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")
}
[Package icardaFIGSr version 1.0.2 Index]