@qe-libs/qeviz 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -115,6 +115,7 @@ All three languages share the same chain operations:
115
115
  | Group means | `qe_group(p, ...)` | `p.group(...)` | `qe_group(p, ...)` |
116
116
  | Edge network | `qe_edges(p, group=, unit=, compare=, also=)` | `p.edges(group=, unit=, ...)` | `qe_edges(p; group=, unit=, ...)` |
117
117
  | Unit points | `qe_points(p)` | `p.points()` | `qe_points(p)` |
118
+ | Axes | `qe_axes(p, x=, y=)` | `p.axes(x=, y=)` | `qe_axes(p; x=, y=)` |
118
119
  | Labels | `qe_labels(p, nodes=, means=, points=)` | `p.labels(...)` | `qe_labels(p; ...)` |
119
120
  | Export | `qe_export_html(p, path)` | `p.export_html(path)` | `qe_export_html(p, path)` |
120
121
  | Introspect | `qe_groups(p)` / `qe_units(p)` | `p.groups()` / `p.units()` | `qe_groups(p)` / `qe_units(p)` |
@@ -131,6 +132,21 @@ All three languages share the same chain operations:
131
132
 
132
133
  Label modes: `"on"`, `"off"`, `"click"`, `"auto"`.
133
134
 
135
+ ### `qe_axes` / `.axes()` parameters
136
+
137
+ Axes are **opt-in**: a plot draws the x/y axis cross only when `qe_axes()` is in the
138
+ chain (or a `<qe-axes>` element is present). Each axis label is controlled independently:
139
+
140
+ | Parameter | Description |
141
+ |---|---|
142
+ | `x` | `TRUE` labels the x-axis with its dimension name, a string sets custom text, `FALSE` omits the x-axis label. |
143
+ | `y` | Same as `x`, for the y-axis. |
144
+ | `show` / `show=false` | Suppress the axes entirely. |
145
+
146
+ ```r
147
+ qe_plot(set) |> qe_edges("FirstGame") |> qe_axes(x = "Task focus", y = TRUE)
148
+ ```
149
+
134
150
  ## TypeScript / web component
135
151
 
136
152
  The `<qe-visual>` and `<qe-graph>` elements can be used directly in any HTML page. Layer configuration uses declarative child elements: