dataPlot: dataPlot: visualise observation

Description Usage Arguments Author(s) Examples

Description

This function allows you to visualise features of a dataset by specifying dependent and response variable.

Usage

1
2
dataPlot(x,y,by=NULL,weights=NULL, exposure = NULL,newGroupNum=10,xlim=NULL, 
    breaks = NULL, missing=TRUE, xname="x",yname="Response",byname="by",legendPos=NULL)

Arguments

x

a vector indicates the dependent variable

y

a vector indicates the response variable

by

Optinal.A numerical vector to specify the <by> variable

weights

Optional. A numerical vector to specify the weights used for calculating weighted average of response. normally this is the figures from over/down-samping.

exposure

Optional. A numerical vector to specify the exposure used for calculating weighted average of response.

newGroupNum

An integer specifies number of new bands when levels of current plotting variable 'xvar' or 'by' is more than 100.

xlim

Optional. A vector provides the range of the variable e.g. xlim=c(0,100).

breaks

Optional. A vector to specify the breaks for the xvar.

missing

logical. whether to show the 'NA' as 'Missing' in plot. If a 'Missing' level is already existed, then 'NA' will combined

xname, yname, byname

Optional. Characters of axis to be shown on plot.

legendPos

Optional. 2 numeric element vector specify the location of legend.

Author(s)

Sixiang.Hu

Examples

1

SixiangHu/DataMan documentation built on May 9, 2019, 1:48 p.m.