initialize-Guide: Initializes a Guide

Description Usage Arguments Examples

Description

Uses the constructor to create the object or update an existing one with the setters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S4 method for signature 'Guide'
initialize(.Object, fillAlpha, valueAxis, value, ...)

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

setFillAlpha(.Object, fillAlpha)

## S4 method for signature 'Guide,numeric'
setFillAlpha(.Object, fillAlpha)

## S4 method for signature 'Guide,ValueAxisOrCharacterOrMissing'
setValueAxis(.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 of Guide.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# --- method initialize
new("Guide", fillAlpha = 0.1, gridThickness = 1, value = 1)

# --- constructor
guide(fillAlpha = .4, value = 1)
guide(fillAlpha = .4, adjustBorderColor = TRUE, gridThickness = 1)

setFillAlpha(.Object = guide(), fillAlpha = 1)
valueAxis_obj <- valueAxis(test = "foo")
setValueAxis(.Object = guide(), valueAxis = valueAxis_obj)

Example output

Important changes: constructors legend() and title() have been replaced by amLegend() and amTitle().
For any bug report or feed back see https://github.com/datastorm-open/rAmCharts
~ Guide ~
$gridThickness
[1] 1

$value
[1] 1

$fillAlpha
[1] 0.1

~ Guide ~
$value
[1] 1

$fillAlpha
[1] 0.4

~ Guide ~
$adjustBorderColor
[1] TRUE

$gridThickness
[1] 1

$fillAlpha
[1] 0.4

~ Guide ~
$fillAlpha
[1] 1

~ Guide ~
$valueAxis
$valueAxis$test
[1] "foo"

rAmCharts documentation built on Dec. 6, 2019, 5:11 p.m.