igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Function 'density' masks that of the stats library


From: Chris Watson
Subject: Re: [igraph] Function 'density' masks that of the stats library
Date: Wed, 14 Jan 2015 13:28:56 -0500

As a temporary workaround, one can do all the necessary processing/analysis/etc. in igraph, and then when it comes time to plotting things, just run the command

> detach('package:igraph', unload=T)

It isn't ideal but it works.

On Wed, Jan 14, 2015 at 1:17 PM, Gábor Csárdi <address@hidden> wrote:
I see. I reported it here: https://github.com/hadley/ggplot2/issues/1041
Unfortunately, I think ggplot2 will not have a new release in the near future, so I might need to consider renaming density, otherwise ggplot2 and igraph won't work well together.

Best,
Gabor

On Sat, Jan 10, 2015 at 5:55 PM, Chris Watson <address@hidden> wrote:
Sorry, to be more clear, I believe the 'geom_density' function in 'ggplot2' itself calls 'density'.

On Sat, Jan 10, 2015 at 5:53 PM, Gábor Csárdi <address@hidden> wrote:
Hi, I am not sure why this would be a problem. Igraph does not define a function called geom_density.

G.

On Sat, Jan 10, 2015 at 4:52 PM, Chris Watson <address@hidden> wrote:
Hi Gabor, it looks like there is also a problem when using 'geom_density' from 'ggplot2'. Should I contact Hadley about this issue as well?

Thanks,
Chris

On Fri, Dec 26, 2014 at 5:57 PM, Gábor Csárdi <address@hidden> wrote:
Hi, yes, this is annoying. beanplot should have 'Imports: stats' in
its DESCRIPTION and 'importFrom(stats, density)' in its NAMESPACE.

I am not sure why this is the default behavior, probably for historical reasons.

I don't think that there is a workaround, other than using a patched
beanplot package. You can report the issue to the package author,
though.

Best,
Gabor

On Fri, Dec 26, 2014 at 5:33 PM, Chris Watson <address@hidden> wrote:
> Hello, it appears that the igraph function 'density' now masks that of the
> stats library. This causes an issue when using, e.g. 'beanplot' which makes
> a call to 'density' (so I can't write 'stats::density' unless I want to edit
> 'beanplot'). Is there a workaround for this?
>
> Thanks,
> Chris
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help


_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]