Columns names with MathJax

This example shows how to create a flextable equations in header. It is created with a data.frame whose column names contain LaTeX equations.

cell-content compose

Insert equations

This example shows how to add ‘MathJax’ equations into a flextable.

cell-content compose

Custom cell content

Demonstration of formatting capabilities for cell content of various types such as numeric columns, dates, strings.

cell-content defaults


Apply a color gradient on a contingency table.

color headers

GAM model

How to get a flextable from a GAM model by calling as_flextable.

model as_flextable

tennis players

Mix text and image, use the functions compose and as_image. The table shows a tennis players ranking.

compose image

captions examples

How to add captions to a flextable in R Markdown documents.

These examples demonstrate various methods.

caption as_flextable

Correlation matrix

How to add create a flextable that looks like an heatmap.

These examples is using a correlation matrix to illustrate the case.

color height width

GLM model

How to get a flextable from a GLM model.

This example demonstrate a simple call to as_flextable and then format the result.

model as_flextable

Mario kart

Mix text and image to build a table presenting statistics of Mario Kart characters.


Table with density lines

In this example, we create a flextable that represents an aggregation as a density curve.

compose plot

Inner and outer borders

How to manage regular inner and outer borders.


Creating a theme function

In this example, a theme function is created and used to format different data.frame.


Copyright © ArData 2021  -  Template by & ported to Hugo by Kishan B