ag.densitygrid.ds: Generates a density grid with or without a priori defined...

Description Usage Arguments Value Author(s) Examples

Description

Generates a density grid with or without a priori defined limits

Usage

1
2
3
  ag.densitygrid.ds(xvect, yvect, limits = FALSE,
    x.min = NULL, x.max = NULL, y.min = NULL, y.max = NULL,
    numints = 20)

Arguments

xvect

a numerical vector

yvect

a numerical vector

limits

a logical expression for whether or not limits of the density grid are defined by a user If limits is set to "FALSE", min and max of xvect and yvect are used as a raneg If limits is st to "TRUE", limits defined by x.min, x.max,y.min and y.max are used

x.min

a minimum value for the x axis of the grid density object, if needed

x.max

a maximum value for the x axis of the grid density object, if needed

y.min

a minimum value for the y axis of the grid density object, if needed

y.max

a maximum value for the y axis of the grid density object, if needed

numints

a number of intervals for the grid density object, by default is 20

Value

a grid density matrix

Author(s)

Isaeva, J. and Gaye, A.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
# load the file that contains the login details
data(logindata)

# login and assign the required variables to R
myvar <- list("LAB_TSC","LAB_HDL")
opals <- ag.ds.login(logins=logindata,assign=TRUE,variables=myvar)

# Example 1: generate a density grid matrix
datashield.aggregate(opals, quote(ag.densitygrid.ds(D$LAB_TSC, D$LAB_HDL)))

# Example 2: generate a density grid matrix; SHOULD NOT WORK as \code{limits=F}!
datashield.aggregate(opals, quote(ag.densitygrid.ds(D$LAB_TSC, D$LAB_HDL, x.min=3)))

# Example 3: generate a density grid matrix with defined limits
datashield.aggregate(opals, quote(ag.densitygrid.ds(D$LAB_TSC, D$LAB_HDL, limits=T, x.min=1,x.max=11,y.min=0,y.max=3)))

# Example 4: generate a density grid matrix; SHOULD NOT WORK as no defined limits are provided.
datashield.aggregate(opals, quote(ag.densitygrid.ds(D$LAB_TSC, D$LAB_HDL, limits=T)))

## End(Not run)

datashield/ag.dev.sv documentation built on May 14, 2019, 7:46 p.m.