Quantcast
Channel: Active questions tagged kable - Stack Overflow
Viewing all articles
Browse latest Browse all 102

How do I create these colored bars/boxes/square rounded boxes by themselves that seems to be in its own table in R or python or even exel?

$
0
0

Player and EPA

How do I create these colored bars/boxes/square rounded boxes by themselves that seems to be in a table in R or python or even excel? I want to create this exact table from scratch and with fixed numbers is fine for now.

Player <- c('T.Lawrence', 'D.Carr')Plays <- c(35,62)EPA_play <- c(0.32, -0.28)Total_EPA <- c(11.3, -17.2)df <- data.frame(Player,Plays,EPA_play,Total_EPA)dfkable(df)

This is the output but maybe in a quarto would be nice...?

|Player     | Plays| EPA_play| Total_EPA||:----------|-----:|--------:|---------:||T.Lawrence |    35|     0.32|      11.3||D.Carr     |    62|    -0.28|     -17.2|

I just want the display to look the same as the PICTURE ABOVE with the bars being displayed in the chart. How do I get the bars to display within the table?


Viewing all articles
Browse latest Browse all 102

Trending Articles