Hi Henrik,
who knows where you are at in programming knowledge and what you exactly
want to do. I have a feeling that Ista's tip is the right one - you want
to extend ggplot2. If you are familiar with OO-languages, e.g. python,
then R5 is a breeze. Otherwise, it can be intimidating at first. I
suggest starting with some documentation. Then digging/tunneling won't
be confusing.
Slots belong to S4. In R5, "fields are the equivalent of slots in S4."
Good luck,
Brian
> <mailto:
henri...@gmail.com>> wrote:
>
> Hi Brian!
>
> Thank you for your rapid reply. My first attempt to find the slots
> used in self was to look at str(myplot) and ggplot_build(myplot),
> without success. They must be hidden deeper down (or further
> sideways...) than I have dug so far. Or I might have misunderstood
> the R5 concept entirely...
>
> Cheers
>
>
> On Tuesday, September 27, 2016 at 11:25:34 AM UTC+2, zenlines wrote:
>
> Hi Henrik,
> As you probably know you are looking at reference class R code:
>
>
http://adv-r.had.co.nz/R5.html
>
> I remember Hadley mentioning a new object orientation class used
> for the last (2.0?) ggplot2 release. If true and undocumented, I
> guess the "self" refers to containing object (Class) - as it
> does in python. Otherwise this is inherent to the reference class.
>
> HTH,
> Brian
>
>
> El 27 de septiembre de 2016 8:52:41 AM GMT+02:00, Henrik
> <
henri...@gmail.com> escribió:
>
> In the source code of ggplot, it is often refered to a "self
> object" and different slots therein. For example,
> in scale-.r
> <
https://github.com/hadley/ggplot2/blob/master/R/scale-.r> we find,
> <mailto:
ggp...@googlegroups.com>
> To unsubscribe: email
ggplot2+u...@googlegroups.com
> <mailto:
ggplot2%2Bunsu...@googlegroups.com>
> More options:
http://groups.google.com/group/ggplot2
> <
http://groups.google.com/group/ggplot2>
>
> ---
> You received this message because you are subscribed to the Google
> Groups "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
ggplot2+u...@googlegroups.com
> <mailto:
ggplot2+u...@googlegroups.com>.
> <
https://groups.google.com/d/optout>.
> To unsubscribe: email
ggplot2+u...@googlegroups.com
> More options:
http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google
> Groups "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
ggplot2+u...@googlegroups.com
> <mailto:
ggplot2+u...@googlegroups.com>.