Description Usage Arguments Value Author(s) Examples
Generates a density grid with or without a priori defined limits
1 2 3 |
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
|
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 |
a grid density matrix
Isaeva, J. and Gaye, A.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.