plot_dist_scatter | R Documentation |
The distance metric should be codified and made more intelligent. Currently it creates a dataframe of distances which are absolute distances from each axis, multiplied by each other, summed by axis, then normalized against the maximum.
plot_dist_scatter(df, size = 2, xlab = NULL, ylab = NULL)
df |
Dataframe likely containing two columns. |
size |
Size of the dots. |
xlab |
x-axis label. |
ylab |
y-axis label. |
Ggplot2 scatter plot. This plot provides a "bird's eye" view of two data sets. This plot assumes the two data structures are not correlated, and so it calculates the median/mad of each axis and uses these to calculate a stupid, home-grown distance metric away from both medians. This distance metric is used to color dots which are presumed the therefore be interesting because they are far from 'normal.' This will make a fun clicky googleVis graph if requested.
[ggplot2::geom_point()] [plot_linear_scatter()]
## Not run:
dist_scatter(lotsofnumbers_intwo_columns)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.