gs_gauge_create | R Documentation |
Creates a new gauge.
gs_gauge_create(title = "hello_world2", tz = "Eastern Time (US & Canada)", allowed_hosts = NULL, key = NULL, keyname = "GaugesKey", verbose = TRUE)
title |
Title of the gauge. |
tz |
The time zone that should be used for all date/time operations. See here http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html for reference. |
allowed_hosts |
Comma or space separated list of domains to accept tracking data from. |
key |
API key. If left NULL, function looks for key in your options settings defined in the keyname parameter |
keyname |
Your API key name in your .Rprofile file |
verbose |
Print http status (default) or not |
Note that you can create gaguges with the same names, beware.
Gives HTTP status and metadata for the new gauge.
Note that these examples only work if you provide your Gaug.es API key either by passing in the function, or storing your key in your .Rprofile file, defaults to looking for an entry of "GaugesKey".
## Not run: gs_gauge_create() # create a gauge with defaults, your gauge will be called hello_world ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.