mapAccessions: Plotting Accessions on Map.

Description Usage Arguments Value Author(s) Examples

View source: R/mapAccessions.R

Description

this function returns a map with points showing where accessions are located.

Usage

1
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 df representing longitude.

lat

character. Column name from df representing latitude.

y

Default: NULL, column name from df representing the target variable.

Value

A world map with plotted points showing locations of accessions.

Author(s)

Khadija Aouzal, Zakaria Kehel

Examples

 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")
 }

khadijaaziz/icardaFIGSr documentation built on Dec. 21, 2021, 6:38 a.m.