Description Usage Arguments Details Value Author(s) Examples
This function plots a histogram without outliers.
1 | ds.histogram(x = NULL, type = "combine", datasources = NULL)
|
x |
a charcater, the name of the vector of values for which the histogram is desired. |
type |
a character which represent the type of graph
to display. If |
datasources |
a list of opal object(s) obtained
after login in to opal servers; these objects hold also
the data assign to R, as |
It calls a datashield server side function that produces the histogram objects to plot. The objects to plot do not contain bins with counts smaller than the allowed threshold. The function allows for the user to plot disctinct histograms (one for each study) or a combine histogram that merges the single plots.
one or more histogram objects and plots depending on the
argument type
Gaye, A.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | {
# load that contains the login details
data(logindata)
# login and assign specific variable(s)
myvar <- list('LAB_TSC', 'LAB_HDL')
opals <- datashield.login(logins=logindata,assign=TRUE,variables=myvar)
# Example 1: plot a combined histogram of the variable 'LAB_TSC' default behaviour
ds.histogram(x='D$LAB_TSC')
# Example 2: Plot the histograms of LAB_TSC separately (one per study)
ds.histogram(x='D$LAB_TSC', type='split')
# Example 2: plot a combined histogram of the variable 'LAB_HDL' default behaviour
ds.histogram(x='D$LAB_HDL')
# Example 3: plot the histograms of LAB_HDL separately (one per study)
ds.histogram(x='D$LAB_HDL', type='split')
# clear the Datashield R sessions and logout
datashield.logout(opals)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.