Displaying 2 results from an estimated 2 matches for "mfirst".
Did you mean:
first
2009 May 27
2
Object-oriented programming in R
...e(V1 = 1:5, V2 = 6:10) ;
> p.plot = ggplot(data=some.data,aes(x=V1, y=V2)) ;
> class(p.plot) ;
> [1] "ggplot"
My understanding is that the object p.plot belongs to the "ggplot"
class. However, a new class definition like
> setClass("AClass", representation(mFirst = "numeric", mSecond =
> "ggplot")) ;
yields the warning
> Warning message:
> In .completeClassSlots(ClassDef, where) :
> undefined slot classes in definition of "AClass": mSecond(class
> "ggplot")
The ggplot object is also a list :
> is...
2009 Jun 01
1
installing sn package
...e(V1 = 1:5, V2 = 6:10) ;
> p.plot = ggplot(data=some.data,aes(x=V1, y=V2)) ;
> class(p.plot) ;
> [1] "ggplot"
My understanding is that the object p.plot belongs to the "ggplot"
class. However, a new class definition like
> setClass("AClass", representation(mFirst = "numeric", mSecond =
> "ggplot")) ;
yields the warning
> Warning message:
> In .completeClassSlots(ClassDef, where) :
> undefined slot classes in definition of "AClass": mSecond(class
> "ggplot")
The ggplot object is also a list :
> is....