How can I force ggplot to show more levels on the legend?

前端 未结 1 1270
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 17:27

I\'m trying to create a complex ggplot plot but some things don\'t work as expected.

I have extracted the problematic part, the creation of points and its associated

相关标签:
1条回答
  • 2021-01-05 17:45

    If you set the limits to encompass the breaks you'll be able to alter the legend. Current most of the breaks are outside the default limits of the scale.

    ggplot() + 
        geom_point(data = nodos,
                   aes(x = ord, y = event, size = NP), color="black", shape = 16) +
        scale_size_continuous(name = "Prop.",
                              breaks = bb,
                              limits = c(.05, .4),
                              labels = ll,
                              range = c(0, 6) )
    

    0 讨论(0)
提交回复
热议问题