plot_tree_eco {bigchess}R Documentation

Plot tree for a given tree ECO table

Description

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

Usage

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

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 ... ?")

[Package bigchess version 1.9.1 Index]