cor_creeks: cor_creeks

Description Usage Arguments Value

View source: R/stat.R

Description

prints a correlation plot of two variables colored by creek

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
cor_creeks(
  var1,
  var2,
  creeks,
  creek_labs,
  labs = c("var1", "var2"),
  cols = length(creek_labs),
  leg_pos = "topleft",
  a = 0.33
)

Arguments

var1

is a numeric vector

var2

is a numeric vector length('var1')

creeks

is a character vector of creek names

creek_labs

is a character vector providing creek labels

labs

is a character vector providing two plot labels in order 'var1' 'var2'

leg_pos

is a character vector denoting legend position

a

is the level of alpha transparency (0,1)

Value

a scatter plot of 'var1' vs. 'var2' with a linear fit line


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.