Skip to content

One footnote for two different types of locations #1775

Answered by rich-iannone
rjazwiec asked this question in Q&A
Discussion options

You must be logged in to vote

You are pretty close! You just need to use list() instead of c() for your locations calls.

This works for what you're trying to do:

library(gt)

exibble |>
  gt() |>
  tab_footnote(
    footnote = "My footnote",
    locations = list(
      cells_body(columns = num, rows = 1),
      cells_column_labels(columns = fctr)
    )
  )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rjazwiec
Comment options

Answer selected by rich-iannone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants