Learn R Programming

rAmCharts (version 1.1.1)

initialize,Guide-method: Initialize a Guide

Description

Initialize a Guide

SETTER

Usage

## S3 method for class 'Guide':
initialize(.Object, fillAlpha, valueAxis, value, ...)

guide(fillAlpha, valueAxis, value, ...)

setFillAlpha(.Object, fillAlpha)

## S3 method for class 'Guide,numeric': setFillAlpha(.Object, fillAlpha)

## S3 method for class 'Guide': setValueAxis(.Object, valueAxis = NULL, ...)

## S3 method for class 'Guide': addValueAxis(.Object, valueAxis = NULL, ...)

Arguments

.Object
Guide
fillAlpha
numeric. Specifies if a grid line is placed on the center of a cell or on the beginning of a cell. Possible values are: "start" and "middle" This setting doesn't work if parseDates is set to true.
valueAxis
ValueAxis class. As you can add guides directly to the chart, you might need to specify which value axis should be used.
value
numeric.
...
Other properties.

Functions

  • guide:

See Also

Guide S4 class

Examples

Run this code
new("Guide", fillAlpha = 0.1, gridThickness = 1, value = 1)
guide(fillAlpha = .4, value = 1)
guide(fillAlpha = .4, adjustBorderColor = TRUE, gridThickness = 1)
setFillAlpha(.Object = guide(), fillAlpha = 1)
setValueAxis(.Object = guide(), valueAxis = list(valueAxis(test = "foo"),
                                                 valueAxis(test2 = "foo2")))
setValueAxis(.Object = guide(), valueAxis = valueAxis(test = "foo"))
addValueAxis(.Object = guide(), axisTitleOffset = 12, tickLength = 10)
valueAxis <- valueAxis(axisTitleOffset = 12, tickLength = 10)
addValueAxis(.Object = guide(), valueAxis = valueAxis)

Run the code above in your browser using DataLab