Skip to content

setting continuous colour not working for geom_point when followed by a continuous fill colour set #6447

Closed
@davidhodge931

Description

@davidhodge931
library(tidyverse)
library(palmerpenguins)
#> 
#> Attaching package: 'palmerpenguins'
#> The following objects are masked from 'package:datasets':
#> 
#>     penguins, penguins_raw

#works
ggplot(mpg, aes(displ, hwy, colour = displ)) +
  geom_point() +
  theme(palette.fill.continuous = viridis::rocket(9)) +
  theme(palette.colour.continuous = viridis::rocket(9))  

#doesn't work
ggplot(mpg, aes(displ, hwy, colour = displ)) +
  geom_point() +
  theme(palette.colour.continuous = viridis::rocket(9)) + 
  theme(palette.fill.continuous = viridis::rocket(9))

Created on 2025-05-06 with reprex v2.1.1

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