ggplot2 Error: Aesthetics must either be length one, or the same length as the dataProblems:colors, letters

前端 未结 1 633
北海茫月
北海茫月 2021-01-29 07:26

I\'m getting this error:

Error: Aesthetics must either be length one, or the same length as the dataProblems:colors, letters

when I

相关标签:
1条回答
  • 2021-01-29 08:11

    (Adding a full answer for clarity's sake; consolidating on comments from Pascal, johnson_shuffle, & Jaap)

    Plotting code should look like:

    ggplot(Z, aes(x=Track, y=Position, fill=Name, label=Name)) +
      geom_raster() +
      geom_text()
    
    0 讨论(0)
提交回复
热议问题