xmastreeshape: Christmas shaped tree.

View source: R/xmastreeshape.R

xmastreeshapeR Documentation

Christmas shaped tree.

Description

Christmas trees (2017 card) with different shapes.

Usage

xmastreeshape(
  year = 2018,
  language = c("english", "spanish", "catalan"),
  shape = c("piramidal", "oval", "vshaped", "round", "columnar"),
  nballs = 15,
  ballscolor = NULL,
  seed = NULL
)

Arguments

year

Year to be printed. Default is 2018.

language

Language to be used in the card. One of c("english", "spanish", "catalan"). Default is "english".

shape

The shape of the tree. One of c("piramidal", "oval", "vshaped", "round", "columnar"). Default is "piramidal".

nballs

The number of balls in the tree. Default is 15.

ballscolor

The colors to be used for the balls in the tree. It must be a vector with names of colors included in colors(), or NULL (default). If NULL, then colors are randomly selected.

seed

Seed for reproducibility of the card. Default is NULL (no seed).

Value

A Christmas card plot including a christmas tree.

Author(s)

Jose Barrera-Gomez.

Examples


xmastreeshape(shape = "oval", language = "catalan", ballscolor = "blue")
xmastreeshape(shape = "vshaped", nballs = 15, ballscolor = c("sienna2", "yellow2", "tomato"),
              seed = 1111)
xmastreeshape(shape = "columnar", nballs = 20, ballscolor = "red")


christmas documentation built on Dec. 28, 2022, 1:09 a.m.