Learn R Programming

dialectR (version 1.0)

mds_map: Visualize dialect continua with MDS maps

Description

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

Usage

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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab