Skip to content

UML Class and Object Diagrams in R

3 messages · Spencer Graves, Charlotte Maia

#
Hi all

Does anyone know if there are any R packages available for creating
UML class and object diagrams in R (suitable for use with Latex)?

I'm considering developing such a system...
Note, I'm aware there are Latex packages (so no one needs to state the obvious).

On a side issue I'm thinking about (mostly) abandoning the class
system I mentioned earlier. Thank you to Martin Maechler, Thomas
Petzoldt and Barry Rowlingson, for their feedback.


kind regards
#
I'm not familiar with 'class and object diagrams', but have you tried 
the sos package available from CRAN via something like the following: 


library(sos)
cod <- findFn('class and object diagram')
cods <- findFn('class and object diagrams')
(cod. <- cod|cods)
summary(cod.)


      When I ran this just now, cod included 287 matches and cods 126, 
totalling 413.  Their union 'cod.' 356 links in 100 packages;  the print 
method opened the results as a table in a browser sorted to put the 
packages with the most, best matches first, with links to each manual 
page.  The 7 packages with the most, best matches were given by the 
summary: 


Packages with at least 7 matches using pattern
  'class+and+object+diagram | class+and+object+diagrams'
         Package Count MaxScore TotalScore       Date
1           ade4    33       24        117 2009-12-16
2        diagram    25       27        166 2009-10-19
3          vegan    15       25         79 2009-07-01
4         CHNOSZ    14       56        183 2009-12-16
5            oce    14       26        114 2009-11-26
6        plotrix    12       39        193 2009-05-14
7   compositions    12       26         91 2009-03-17
8            Epi    11       37        146 2009-11-26
9          psych    10       31        107 2009-11-05
10     alphahull     9       33        100 2009-12-16
11 BiodiversityR     7       48        112 2009-12-16
12  verification     7       28         60 2009-08-16


      Hope this helps.      
      Spencer
Charlotte Maia wrote:

  
    
#
On Thu, Dec 31, 2009 at 5:14 AM, spencerg <spencer.graves at prodsyse.com> wrote:
I don't follow this output.
I checked the first seven packages and couldn't find any reference to
UML diagrams.
However, thank you for trying anyway.

The diagram package may have some potential here (not sure), however
even so, it's far from ideal for UML modelling.


kind regards