Skip to content

Commit

Permalink
cornerplot for rasterstacks
Browse files Browse the repository at this point in the history
  • Loading branch information
gottacatchenall committed Dec 20, 2024
1 parent 7c80e23 commit 25bc0b5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _SCRATCH/scratchpad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Pkg.activate(@__DIR__)
using BiodiversityObservationNetworks
using CairoMakie, GeoMakie


import BiodiversityObservationNetworks as BONs
import BiodiversityObservationNetworks.SpeciesDistributionToolkit as SDT
import BiodiversityObservationNetworks.GeoInterface as GI
Expand All @@ -21,6 +22,11 @@ bon = sample(SpatiallyStratified(100), col_states)
bon = BONs.sample(Grid(), col)
bon = BONs.sample(KMeans(75), bioclim)


cornerplot(bioclim)



begin
f = Figure(size=(900,900))
ga = GeoAxis(f[1,1])
Expand Down
2 changes: 2 additions & 0 deletions ext/BONsMakieExt/BONsMakieExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ else
using ..Makie, ..BiodiversityObservationNetworks
end

include(joinpath(@__DIR__, "recipes.jl"))

end
4 changes: 4 additions & 0 deletions src/BiodiversityObservationNetworks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ module BiodiversityObservationNetworks
export nonempty
export is_polygonizable, is_rasterizable, is_bonifyable

export cornerplot

include(joinpath("geometry", "bon.jl"))
include(joinpath("geometry", "polygon.jl"))
include(joinpath("geometry", "raster.jl"))
Expand All @@ -37,5 +39,7 @@ module BiodiversityObservationNetworks
include(joinpath("samplers", "kmeans.jl"))
include(joinpath("samplers", "spatiallystratified.jl"))

include("plotting.jl")


end
3 changes: 3 additions & 0 deletions src/plotting.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function cornerplot()
@error("Please load `Makie.jl` and before using `bonplot`.")
end

0 comments on commit 25bc0b5

Please sign in to comment.