View source: R/incrementalPlot.R
incrementalPlot | R Documentation |
Plot the difference in the non-group component of inequality at increasing bandwidth sizes.
incrementalPlot(inc)
inc |
The list output of the |
A ggplot object
# Generate dummy observations
x <- runif(10, 1, 100)
# Get distance matrix
dists <- dist(x)
# Bandwidth sizes from 3 to 5
bws <- 3:5
inc <- incrementalLID(x, dist = dists, bws = bws, index = 'gini', type = 'local',
weighting = 'distance', FUN = function(x) 1/x^2, minval = 1)
# Plot the results
incrementalPlot(inc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.