Learn R Programming

rAmCharts (version 1.1.1)

initialize,PeriodSelector-method: Initialize a PeriodSelector

Description

Initialize a PeriodSelector

Usage

## S3 method for class 'PeriodSelector':
initialize(.Object, periods, ...)

periodSelector(periods, ...)

addPeriod(.Object, ...)

## S3 method for class 'PeriodSelector': addPeriod(.Object, ...)

Arguments

.Object
PeriodSelector.
periods
list. Period object has 4 properties - period, count, label and selected. Possible period values are: "ss" - seconds, "mm" - minutes, "hh" - hours, "DD" - days, "MM" - months and "YYYY" - years. property "count" specifies how many periods thi
...
Other properties

Value

  • (updated) .Object of class PeriodSelector

Functions

  • periodSelector:

Examples

Run this code
new( "PeriodSelector")
periodSelector(fillAlpha = .4, value = 1)
periodSelector(fillAlpha = .4, adjustBorderColor = TRUE, gridThickness = 1)
addPeriod(.Object = periodSelector(), period = "MM", selected = TRUE,
          count = 1, label= "1 month")

Run the code above in your browser using DataLab