Skip to content

Feature request: Let each legend control their own inside position #6113

@Yunuuuu

Description

@Yunuuuu
knitr::opts_knit$set(upload.fun = identity)
library(ggplot2)
ggplot(mpg, aes(displ, hwy, colour = cty, size = year)) +
    geom_point(aes(alpha = cyl)) +
    guides(
        colour = guide_colourbar(
            position = "inside",
            legend.position.inside = c(0.2, 0.2)
        ),
        size = guide_legend(
            position = "inside",
            legend.position.inside = c(1, 1)
        )
    )

image

Created on 2024-09-17 with reprex v2.1.0
~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions