[R] bubble(circle) plot help.

Yihui Xie xieyihui at gmail.com
Sat Sep 13 05:58:28 CEST 2008


The function symbols() is in the package 'graphics', so you don't need
any add-on packages.

For example:

# similar code to the example you mentioned
set.seed(1)
symbols(x = rnorm(50), y = rnorm(50), circles = abs(rnorm(50)),
    main = "Circles Plot")

Yihui

On Sat, Sep 13, 2008 at 11:48 AM, Wen Gu <edwardg22486 at hotmail.com> wrote:
> I apologize, I don't quite follow, as I am pretty new at this. Can you give
> me an example of the code you suggest? Does your suggestions still use the
> fbasic package?
>
>> Date: Sat, 13 Sep 2008 11:45:02 +0800
>> From: xieyihui at gmail.com
>> To: edwardg22486 at hotmail.com
>> Subject: Re: [R] bubble(circle) plot help.
>> CC: r-help at r-project.org
>>
>> ?symbols
>>
>> use the argument "circles"
>>
>> On Sat, Sep 13, 2008 at 11:35 AM, Wen Gu <edwardg22486 at hotmail.com> wrote:
>> >
>> > I need help creating a bubbleplot, like a simple pseudo three
>> > dimensional scatterplot of circles whose sizes index a 3rd variable. I
>> > initially came across this at
>> > http://addictedtor.free.fr/graphiques/graphcode.php?graph=73 but the
>> > circleplot function does not exist in fbasic as listed in the document.
>> >
>>
>>
>> --
>> Yihui Xie <xieyihui at gmail.com>
>> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
>> Mobile: +86-15810805877
>> Homepage: http://www.yihui.name
>> School of Statistics, Room 1037, Mingde Main Building,
>> Renmin University of China, Beijing, 100872, China
>


-- 
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872, China



More information about the R-help mailing list