View source: R/plot.agd_worker.R
| plot.agd_worker | R Documentation |
This method renders a scatter plot using results from an agd_worker object.
## S3 method for class 'agd_worker'
plot(x, ..., title_size = 11, axis_size = 9, label_size = 3)
x |
Required: an agd_worker object. |
... |
Optional: arguments to be passed to methods. Note: currently not used. |
title_size |
Required (default: |
axis_size |
Required (default: |
label_size |
Required (default: |
Returns a ggplot2 object invisibly.
# Initialize agd_worker R6 class
agd_data <- agd_worker$new(
id = "jane-canuck",
age = 10,
agd_lfe = system.file("extdata", "jane-canuck-lfe.agd", package = "chms"),
agd_nml = system.file("extdata", "jane-canuck-nml.agd", package = "chms"),
epoch_length = 15,
day_max = 2,
sleep_algo = "barreira",
non_wear_algo = "barreira"
)
# Run data processing pipeline (load, clean, classify and summarize data)
agd_data$run()
# Plot data
plot(agd_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.