plot_dist_scatter: Make a scatter plot between two sets of numbers with a cheesy...

View source: R/plot_point.R

plot_dist_scatterR Documentation

Make a scatter plot between two sets of numbers with a cheesy distance metric and some statistics of the two sets.

Description

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.

Usage

plot_dist_scatter(df, size = 2, xlab = NULL, ylab = NULL)

Arguments

df

Dataframe likely containing two columns.

size

Size of the dots.

xlab

x-axis label.

ylab

y-axis label.

Value

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.

See Also

[ggplot2::geom_point()] [plot_linear_scatter()]

Examples

## Not run: 
 dist_scatter(lotsofnumbers_intwo_columns)

## End(Not run)

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.