Skip to content

A function to create a Christmas tree plot with base R

Notifications You must be signed in to change notification settings

R-CoderDotCom/christmas-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Base R Christmas tree

A function to create a Christmas tree plot with base R.

Note: as the code uses emojis as pch symbols (the snow and the star) I recommend you to copy the function directly into the console instead of opening it with a script.

chtree()

Christmas tree in R

Change background color

chtree(bg.col = "lightblue1")

Xmas tree in R

Remove snow

chtree(snow = FALSE)

R Christmas tree

Remove bulbs

chtree(bulbs = FALSE)

Arbol de Navidad en R

Remove star

chtree(star = FALSE)

R Christmas tree

Acknowledgements

The code is based on a tweet by @jurbane2.

About

A function to create a Christmas tree plot with base R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages