gutils: Graphic utilities.

Description Usage Arguments Details Value Author(s) Examples

Description

Functions to perform simple graphics or enhance existing plots.

Usage

1
2
3
hulls(x, y, gr, col.gr=NULL)

figCnvt(fig1, fig2)

Arguments

x, y

vectors of x, y coordinates.

gr

factor to grop observations.

col.gr

a single colour or a vector of colours of length nG, where nG is the number of groups.

fig1, fig2

original fig dimensions (fig1) and new fig2 dimensions (fig2). See details.

Details

Function hulls is a wrapper for chull to add convex hulls to a scatterplot, optionally specifying a different colour for each hull.

Function figCnvt projects a set of fig dimensions fig2 with respect to an original set fig1. Useful for laying out plots where the ploting region has already been partitioned using fig.

Value

Function figCnvt returns a vector of 4 values specifying the new new figure dimensions.

Author(s)

Steve Juggins

Examples

1
2
3
data(iris)
with(iris, plot(Sepal.Width, Sepal.Length, col=as.integer(Species)))
with(iris, hulls(Sepal.Width, Sepal.Length, gr=(Species)))

Example output

This is rioja 0.9-26

rioja documentation built on Oct. 28, 2020, 5:07 p.m.

Related to gutils in rioja...