tiler: tiler function

Description Usage Arguments Examples

Description

This function plots 3 variables on an x,y and coloured z scale. Values on the x and y scale are tiled and the colour of the tile is determined by the function applied to z (mean,median,count etc.).

Usage

1
2
3
tiler(t, x, xl = F, xs = 1, y, yl = F, ys = 1, z, zl = F, zs = 1,
  bin = 1, min = -5, max = 5, xrange = c(-100, 100), yrange = c(-100,
  100), func = "median", col = cols)

Arguments

t

Table of data

x, y, z

Variables for each scale

xl, yl, zl

Log the variable first. Defaults to F.

xs, ys, zs

Scale the variable first. Defaults to 1.

bin

Size of each tile

min, max

Range of the colour scale. Defaults to -5 to 5

xrange

Range displayed on x-axis. Defaults to c(-100,100)

yrange

Range displayed on y-axis. Defaults to c(-100,100)

func

Function applied to tiled z variables ("median","mean","sum","count"). Defaults to median.

cols

Vector of colours for colour range. Defaults to colorRamps::matlab.like2(10)

Examples

1

swebb1/questplots documentation built on May 30, 2019, 9:38 p.m.