Description Usage Arguments Details Value
axis_table
1 2 3 4 5 6 7 | axis_table(
.data,
x = NULL,
y = NULL,
selected_cols = colnames(.data),
col_widths = NULL
)
|
.data |
Data containing both the y aesthetic of the original data, as well as the columns which should be included in the table. |
x |
A character vector containing the same column as is used for the x aesthetic in the plot (use only one of |
y |
A character vector containing the same column as is used for the y aesthetic in the plot (use only one of |
selected_cols |
A character vector containing the columns in |
col_widths |
A numeric vector containing the desired widths (in characters) of each column. |
Make sure you add
+ theme(axis.text.x = element_text(family = "mono", color = "black", hjust=0))
to the plot if you're adding a table to y axis or
+ theme(axis.text.y = element_text(family = "mono", color = "black", angle=-90, vjust=0))
for the x axis. This will ensure your table is oriented correctly and that a fixed-width font is used.
A specially-formed scale_discrete function containing the table to be added to the plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.