Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rAmCharts4-shapes

Bullets


Description

Create a list of settings for bullets, their shape and their style.

Usage

amTriangle(
  color = NULL,
  opacity = 1,
  width = 10,
  height = 10,
  strokeColor = NULL,
  strokeOpacity = 1,
  strokeWidth = 2,
  direction = "top",
  rotation = 0,
  image = NULL
)

amCircle(
  color = NULL,
  opacity = 1,
  radius = 6,
  strokeColor = NULL,
  strokeOpacity = 1,
  strokeWidth = 2,
  image = NULL
)

amRectangle(
  color = NULL,
  opacity = 1,
  width = 10,
  height = 10,
  strokeColor = NULL,
  strokeOpacity = 1,
  strokeWidth = 2,
  rotation = 0,
  cornerRadius = 3,
  image = NULL
)

Arguments

color

bullet color; this can be a color adapter

opacity

bullet opacity, a number between 0 and 1

width

bullet width

height

bullet height

strokeColor

stroke color of the bullet; this can be a color adapter

strokeOpacity

stroke opacity of the bullet, a number between 0 and 1

strokeWidth

stroke width of the bullet

direction

triangle direction

rotation

rotation angle

image

option to include an image in the bullet, a list created with amImage

radius

circle radius

cornerRadius

radius of the rectangle corners

Value

A list of settings for the bullets.

Note

A color can be given by the name of a R color, the name of a CSS color, e.g. "transparent" or "fuchsia", an HEX code like "#ff009a", a RGB code like "rgb(255,100,39)", or a HSL code like "hsl(360,11,255)".


rAmCharts4

Interface to the JavaScript Library 'amCharts 4'

v1.3.1
GPL-3
Authors
Stéphane Laurent [aut, cre], Antanas Marcelionis [ctb, cph] ('amCharts' library (https://www.amcharts.com/)), Terence Eden [ctb, cph] ('SuperTinyIcons' library (https://github.com/edent/SuperTinyIcons/)), Tom Alexander [ctb, cph] ('regression-js' library (https://github.com/Tom-Alexander/regression-js))
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.