On Mon, Oct 10, 2011 at 6:49 AM, Jurgens de Bruin <debrui...@gmail.com> wrote:
> Hi,
>
> Please advice on what type of graph can be used to display the following
> data set.
>
> I have the following:
>
> Name    Class
> a             Class 1
> a             Class4
> b             Class2
> b             Class1
> d             Class3
> d             Class5
> e             Class4
> e             Class2
>
> So each entry in name can belong to more than one class. I want to represent
> the data as to see where overlaps occur that is which names are in the same
> Class Name and also which names are unique to a Class. I tough a Venn
> Diagram would work but this can only present numerical values for each
> Class, I would like each name to be presented by a dot or *.
>

Assuming DF is the indicated data.frame:

library(gplots)
with(DF, balloonplot(Name, Class, rep(1, nrow(DF)), label = FALSE))


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to