plot_tree_eco: Plot tree for a given tree ECO table

Description Usage Arguments Value Examples

View source: R/plot_tree_eco.R

Description

Plot tree (barplot percentages) for a given tree ECO data frame.

Usage

1
plot_tree_eco(tr, main = "", add.lines = T, add.labels = T)

Arguments

tr

data frame containg tree ECO

main

string for main title, default is ""

add.lines

boolean (default TRUE) add weighted mean lines?

add.labels

boolean (default TRUE) add labels?

Value

Barplot with white scores, draws percent and black scores.

Examples

1
2
3
4
5
f <- system.file("extdata", "Kasparov.gz", package = "bigchess")
con <- gzfile(f,encoding = "latin1")
df <- read.pgn(con,quiet = TRUE,stat.moves = FALSE, add.tags = "ECO")
tr <- tree_eco(subset(df,W1=="e4"),20)
plot_tree_eco(tr,"1. e4 ... ?")

rosawojciech/bigchess documentation built on Jan. 19, 2021, 5:54 a.m.