You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/UserGuide/group.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,11 @@ end
65
65
````
66
66
:::
67
67
68
-
> [!IMPORTANT]
69
-
> In what follows, note how we are referencing the _time_ dimension via _YAX.time_. This approach is used to avoid name clashes with _time_ (_Time_) from **Base** (**Dates**). For convenience, we have defined the **Dimensions**_time_ and _Time_ in **YAXArrays.jl**, which are only accessible when explicitly called.
68
+
::: info
69
+
70
+
In what follows, note how we are referencing the time dimension via `YAX.time`. This approach is used to avoid name clashes with `time` (`Time`) from **Base** (**Dates**). For convenience, we have defined the **Dimensions**`time` and `Time` in **YAXArrays.jl**, which are only accessible when explicitly called.
71
+
72
+
:::
70
73
71
74
Now, we continue with the `groupby` operations as usual
From [DimensionalData docs](https://rafaqz.github.io/DimensionalData.jl/stable/plots#algebraofgraphics-jl) :
104
+
105
+
**AlgebraOfGraphics.jl** is a high-level plotting library built on top of `Makie.jl` that provides a declarative algebra for creating complex visualizations, similar to **ggplot2**'s "grammar of graphics" in R. It allows you to construct plots using algebraic operations like `*` and `+`, making it easy to create sophisticated graphics with minimal code.
106
+
107
+
:::
108
+
109
+
110
+
````@example AoG
111
+
using YAXArrays, Zarr, Dates
112
+
using GLMakie
113
+
using AlgebraOfGraphics
114
+
using GLMakie.GeometryBasics
115
+
GLMakie.activate!()
116
+
````
117
+
118
+
let's continue using the cmip6 dataset
119
+
120
+
````@example AoG
121
+
store ="gs://cmip6/CMIP6/ScenarioMIP/DKRZ/MPI-ESM1-2-HR/ssp585/r1i1p1f1/3hr/tas/gn/v20190710/"
122
+
g = open_dataset(zopen(store, consolidated=true))
123
+
c = g["tas"];
124
+
nothing # hide
125
+
````
126
+
127
+
and let's focus on the first time step:
128
+
129
+
````@example AoG
130
+
dim_data = readcubedata(c[time=1]); # read into memory first!
Note that we are using a `Scatter` type per point and not the `Heatmap` one. There are workarounds for this, albeit cumbersome, so for now, let's keep this simpler syntax in mind along with the current approach being used.
0 commit comments