odmeans_graph {ODMeans} | R Documentation |
Graph ODMeans Function
Description
Graph ODMeans Function
Usage
odmeans_graph(
odmeans_data,
title = "ODMeans Graph",
maptype = "roadmap",
zoom = 4,
add_cluster = TRUE
)
Arguments
odmeans_data |
It receives an object from S3 ODMeans class. However, it can also work with objects from similar classes like S3 k-Means |
title |
It receives an string, and corresponds to the title of the plot. |
maptype |
It receives a string with the type of the map. Depending on the map selected, it will change the background of it. The possible values are: “terrain”, “satellite”, “roadmap”, “hybrid”. |
zoom |
An integer from 3 (continent) to 21 (building), which controls the level of zoom applied to the map. |
add_cluster |
Receives TRUE or FALSE value. When True, it adds the number of the cluster to the arrows. |
Value
A ggplot graph showing a map with the centers of the clusters.
Examples
data(ODMeansTaxiData)
odmeans_data = odmeans(ODMeansTaxiData, 10, 300, 1000, 2200, 3, 50, 100)
odmeans_plot = odmeans_graph(odmeans_data, "ODMeans Taxi Graph", "roadmap", 11, FALSE)
[Package ODMeans version 0.2.1 Index]