Skip to content

Conversation

@laresbernardo
Copy link
Contributor

Fixing the following warning everytime a one-pager is created:

Warning in geom_text(aes(x = max(.data$x), y = 0.5, vjust = -0.5, hjust = 1, :
All aesthetics have length 1, but the data has 250 rows.
ℹ Please consider using annotate() or provide this layer with data containing a single row.

The warning message is due to the fact that geom_text is trying to apply the same label ("Halflife") across multiple rows of the data, which causes a mismatch in the number of aesthetics.

@laresbernardo laresbernardo self-assigned this Dec 20, 2024
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 20, 2024
Copy link
Contributor

@gufengzhou gufengzhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@laresbernardo laresbernardo merged commit c925201 into main Dec 20, 2024
1 check passed
@laresbernardo laresbernardo deleted the bl05 branch December 20, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants