WARNING! This function has been deprecated and is no longer supported. Please use the Point_map function instead. A function to map diversity statistics.
Source:R/Div_Stats_Map.R
Div_Stats_Map.Rd
WARNING! This function has been deprecated and is no longer supported. Please use the Point_map function instead. A function to map diversity statistics.
Usage
Div_Stats_Map(
dat,
plot.type = "all",
statistic,
breaks = NULL,
col,
Lat_buffer = 1,
Long_buffer = 1,
write = FALSE,
prefix = NULL
)
Arguments
- dat
Data frame or character string that supplies the input data. If it is a character string, the file should be a csv. The first column should be the statistic to be plotted and named the same as the statistic argument. The second column is Population indicating which population each row belongs to. The third column is the standard deviation, the fourth column is Long indicating the longitude, and the fifth column is Lat, indicating the latitude.
- plot.type
Character string. Options are all, point, or interpolated. All is recommended and will generate a map with points colored according to heterozygosity as well as a rater of interpolated heterozygosity values.
- statistic
Character string. The statistic to be plotted.
- breaks
Numeric. The breaks used to generate the color ramp when plotting. Users should supply 3 values if custom breaks are desired.
- col
Character vector indicating the colors you wish to use for plotting, three colors are allowed (low, mid, high). The first color will be the low color, the second the middle, the third the high.
- Lat_buffer
Numeric. A buffer to customize visualization.
- Long_buffer
Numeric. A buffer to customize visualization.
- write
Boolean. Whether or not to write the output to a file in the current working directory.
- prefix
Character string that will be appended to file output.
Examples
# \donttest{
data(Het_dat)
Test_het <- Div_Stats_Map(dat = Het_dat, plot.type = 'all',
statistic = "Heterozygosity",
Lat_buffer = 1, Long_buffer = 1, write = FALSE, prefix = 'Test_het')# }
#> [inverse distance weighted interpolation]