Set the continuous color gradient
scale_color_gradient(low = "#1A2E59", high = "#5FD0A5", name = NULL)A ColorScale object to add with +.
ggnext(iris, aes(Sepal.Length, Sepal.Width, color = Petal.Length)) +
geom_point() +
scale_color_gradient(low = "#FFF3B0", high = "#9E2A2B")
#> <ggnext plot>
#> data: 150 x 5
#> aes: x = Sepal.Length, y = Sepal.Width, color = Petal.Length
#> layers: 1
#> coord: cartesian
#> mode: static