fig: Insert a datalegreya font easily into html outputs using R.

Description Usage Arguments References

View source: R/main.R

Description

Insert a datalegreya font easily into html outputs using R.

Usage

1
2
3
fig(object, symbol = NULL, ylabs = rep(NA, 2), xlabs = rep(NA, 2),
  start_value = 0, size = NULL, type = "dot", color = NULL,
  colour = color, bgcolor = NULL, bgcolour = bgcolor, sother = NULL)

Arguments

object

A named integer vector with elements of 0, 1, 2, 3 and names corresponding to the characters of the text.

symbol

A named integer vector where the name should signify which symbol (min, max, down or up) and the integer specifying above which character it should be placed.

ylabs

A string vector of length 2 comprising of string of max length 5 for the bottom and top label of the y-axis. This is NOT working for some reason.

xlabs

A string vector of length 2 comprising of string (of max length 5) to be placed on top of the main text. The first string is placed on the start of the main text and the second at the end. Leave as NA to have one or both to display no labels.

start_value

An integer between 0 and 3 (inclusive) to specify the starting value of the graph.

size

The size of the font.

type

The type of datalegreya font, either thin, gradient or dot.

color, colour

Colour to be given to the icon

bgcolor, bgcolour

Colour to be given to the background

sother

Character vector of other parameters directly added to the style classes.

References

Datalegreya


emitanaka/datalegreyar documentation built on May 20, 2019, 1:14 p.m.