Description Usage Arguments Value Examples
View source: R/browse_eco_opening.R
Browse ECO opening winning and drawing percentages by table and barplot
1 | browse_eco_opening(df, topn = 0)
|
df |
data frame with imported chess games from read.pgn() function. |
topn |
integer, default is 0, passed to tree_eco function (indicating how many top openings should be included). |
Data frame from tree_eco function and plot from plot_tree_eco function.
1 2 3 4 5 | f <- system.file("extdata", "Kasparov.gz", package = "bigchess")
con <- gzfile(f,encoding = "latin1")
df <- read.pgn(con,quiet = TRUE,ignore.other.games = TRUE,stat.moves = FALSE, add.tags = "ECO")
# Analyze 20 best ECO Kasparov openings:
bo <- browse_eco_opening(subset(df,grepl("Kasparov",White)),20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.