R: How to overlay pie charts on 'dots' in a scatterplot in R

后端 未结 2 1007
孤独总比滥情好
孤独总比滥情好 2020-12-18 23:03

Using R I would like to replace the points in a 2d scatter plot by a pie chart displaying additional values.

The rational behind is that I have time series data for

2条回答
  •  温柔的废话
    2020-12-18 23:55

    Yes. pieGlyph() is one ready-to-go function from the Rgraphviz package.

    Also, I would check out this Q/A for how to do things like this more generally:

    How to fill a single 'pch' point on the plot with two-colours?

    Especially check out ?my.symbols from the TeachingDemos package.

    Lastly, in regards to ggplot2, you should check out this blog post about possible upcoming features:

    http://blog.revolutionanalytics.com/2011/10/ggplot2-for-big-data.html

提交回复
热议问题