Skip to content

position argument is not passed to layer() in annotate() #5151

Closed
@dmi3kno

Description

@dmi3kno

The argument position is not passed through ellipsis to the layer() command from annotate()

ggplot(mtcars,aes(disp,mpg))+geom_point()+
annotate("text", x=min(mtcars$disp), y=max(mtcars$mpg), label="Value", hjust=0, position=position_nudge(x=10))
#> Warning message:
#> In annotate("text", x = min(mtcars$disp), y = max(mtcars$mpg), label = "Value",  :
#>  Ignoring unknown parameters: `position`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions