gradient_contour: plot contour map for 2D data

Usage Arguments

View source: R/plotContour.R

Usage

1
2
3
4
5
6
7
gradient_contour(df, ttl = "", type = "fill",
  gradLow = "lightgoldenrodyellow", gradHigh = "mediumblue",
  contourBins = 30L, addPoints = TRUE, downSample = 1,
  pt_colour = "black", pt_alpha = 1, addFit = TRUE,
  fitCol = "maroon", ebCol = "mistyrose3", xlab = "x", ylab = "y",
  xl = NULL, yl = NULL, addZeroRef = TRUE, getObj = FALSE,
  logLog = FALSE)

Arguments

df

(data.frame) with 'x' and 'y' values

gradLow,

gradHigh (char) gradient low and high colour values

contourBins

(integer) number of bins in contour

addPoints

(logical) if T, shows individual observations

pt_colour,

pt_alpha (character) colour for data points; only useful if addPoints=TRUE

addFit

(logical) add line fit with CI

fitCol

(char) colour for line fit

ebCol

(char) colour for errorbar

xlab,

ylab (char) x/y axis labels

xl,

yl (numeric length 2) xlim and ylim. If NULL, shows [1,99]th percentile

addZeroRef

(logical) add zero as a reference line

getObj

(logical) if TRUE returns ggplot object.

logLog

(logical) if TRUE plots log-log scale

fill

(char) "lines" (contour lines) or "fill" (contour fill)

downSampls

(numeric between 0-1)Downsamples data points before plotting (e.g. 0.1 shows 10

plot contour map for 2D data


shraddhapai/dataExplore documentation built on March 9, 2020, 9:17 a.m.