poisotlab / ecologicalnetworksplots.jl Goto Github PK
View Code? Open in Web Editor NEWNetworks. Boil 'em mash 'em stick 'em in a stew. And now, plot 'em.
License: Other
Networks. Boil 'em mash 'em stick 'em in a stew. And now, plot 'em.
License: Other
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
The code in #2 has a bug -- networks
instead of network
At the moment, the legends are not good. It would nice to have a colorbar, or a sample of point sizes with the values. I will do this one later, as it's not really critical.
@JuliaRegistrator register branch=master
Ideally, scatter
would plot the points, and plot
the lines -- this opens a few interesting possibilities.
@JuliaRegistrator register
In some cases, it would be useful to be able to label some nodes on the network, which can be done with annotate!(L, N)
where L
is a layout, and N
is a network (or a subset of it).
This can probably be done with a recipe, but I'm not finding this info anywhere in the doc -- @mkborregaard do you have more info about where I should look?
seems like Plots.jl must also be added and called when using EcologicalNetworksPlots.jl
Please make this explicit in the example code
Several of the plots listed on https://poisotlab.github.io/EcologicalNetworksPlots.jl/latest/examples/
don't actually plot (using Julia 1.4.2). No error messages for me, just the plot doesn't seem to work.
#For example:
#"Force directed layout"
Umod = web_of_life("M_PA_003")
I = initial(RandomInitialLayout, Umod)
for step in 1:2000
position!(ForceDirectedLayout(1.5), I, Umod)
end
plot(I, Umod, aspectratio=1)
scatter!(I, Umod, bipartite=true)
Fweb = simplify(nz_stream_foodweb()[5])
I = initial(FoodwebInitialLayout, Fweb)
for step in 1:4000
position!(ForceDirectedLayout(true, false, 2.5), I, Fweb)
end
plot(I, Fweb)
scatter!(I, Fweb)
Fweb = simplify(nz_stream_foodweb()[5])
I = initial(FoodwebInitialLayout, Fweb)
for step in 1:4000
position!(ForceDirectedLayout(true, false, 2.5), I, Fweb)
end
tl = trophic_level(Fweb)
for s in species(Fweb)
I[s].y = tl[s]
end
plot(I, Fweb)
scatter!(I, Fweb)
Umod = web_of_life("M_PA_003")
I = initial(RandomInitialLayout, Umod)
for step in 1:4000
position!(ForceDirectedLayout(2.5), I, Umod)
end
plot(I, Umod, aspectratio=1)
scatter!(I, Umod)
N = convert(AbstractUnipartiteNetwork, convert(BinaryNetwork, Umod))
core3 = collect(keys(filter(p -> p.second == 3, degree(N))))
plot!(I, N[core3], lc=:red)
scatter!(I, N[core3], mc=:red)
Add a heatmap
function to plot the matrix itself
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.