mds_map: Visualize dialect continua with MDS maps

Description Usage Arguments Value Examples

View source: R/mds_map.R

Description

Input a distance matrix and kml data, where multidimensional scaling will be applied on the former and projected onto a map.

Usage

1
mds_map(dist_mat, kml_points, kml_polygon)

Arguments

dist_mat

A distance matrix.

kml_points

A dataframe of kml points, as retrieved by get_points.

kml_polygon

A dataframe of kml polygons, as retrieved by get_polygons.

Value

A map upon which the results of multidimensional scaling are projected upon.

Examples

1
2
3
4
5
# Example 1: An MDS map of Dutch dialects
data(distDutch)
dutch_points <- get_points(system.file("extdata", "DutchKML.kml", package="dialectR"))
dutch_polygons <- get_polygons(system.file("extdata", "DutchKML.kml", package="dialectR"))
mds_map(distDutch, dutch_points, dutch_polygons)

dialectR documentation built on May 20, 2021, 9:06 a.m.