scatterhist: Creating a scatter plot and histogram combo

Description Usage Arguments Value Examples

View source: R/scatterhist.R

Description

This functions reads in to vectors of the same size and plots them on a scatter plot. It also creates a histogram on each axis of the scatter plot.

Usage

1
scatterhist(x, y, xlab = "", ylab = "")

Arguments

x

a vector of values

y

a vector of values

xlab

a label for the x axis

ylab

a label for the y axis

Value

Scatter plot with frequency of points on each axis

Examples

1
x = c(1,2,3,3,5); y = c(1,2,3,4,4); scatterhist(x, y, xlab = "x-axis", ylab = "y-axis")

sche97/MATH4753 documentation built on April 17, 2020, 9:39 a.m.