diff --git a/_SCRATCH/scratchpad.jl b/_SCRATCH/scratchpad.jl index f7e9b93..7cbcd83 100644 --- a/_SCRATCH/scratchpad.jl +++ b/_SCRATCH/scratchpad.jl @@ -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 @@ -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]) diff --git a/ext/BONsMakieExt/BONsMakieExt.jl b/ext/BONsMakieExt/BONsMakieExt.jl index fae1a83..72e6f01 100644 --- a/ext/BONsMakieExt/BONsMakieExt.jl +++ b/ext/BONsMakieExt/BONsMakieExt.jl @@ -8,4 +8,6 @@ else using ..Makie, ..BiodiversityObservationNetworks end +include(joinpath(@__DIR__, "recipes.jl")) + end \ No newline at end of file diff --git a/src/BiodiversityObservationNetworks.jl b/src/BiodiversityObservationNetworks.jl index 118f9fe..01231d0 100644 --- a/src/BiodiversityObservationNetworks.jl +++ b/src/BiodiversityObservationNetworks.jl @@ -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")) @@ -37,5 +39,7 @@ module BiodiversityObservationNetworks include(joinpath("samplers", "kmeans.jl")) include(joinpath("samplers", "spatiallystratified.jl")) + include("plotting.jl") + end \ No newline at end of file diff --git a/src/plotting.jl b/src/plotting.jl new file mode 100644 index 0000000..4d88b76 --- /dev/null +++ b/src/plotting.jl @@ -0,0 +1,3 @@ +function cornerplot() + @error("Please load `Makie.jl` and before using `bonplot`.") +end \ No newline at end of file