File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
src/scicloj/tableplot/ideas Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 11^{:clay {:title " Macroexpand 2025 Noj: Civitas Workshop"
22 :quarto {:author :timothypratley
3- :description " What is Civitas, why use it, and how to use it."
43 :image " macroexpand_workshop_tableplot.png"
54 :type :post
65 :date " 2025-10-17"
109 (:require [tablecloth.api :as tc]
1110 [scicloj.tableplot.v1.plotly :as tp]))
1211
13- ; ; We built this code in the Civitas Workshop,
14- ; ; we selected Tableplot as the topic to write about.
15-
12+ ; ; We built this code in the Civitas Workshop.
13+ ; ; We selected Tableplot as the topic to write about.
1614
1715; ; Everything about Tableplot is inspired by R,
1816; ; there everything is about tables - dataframes.
2523 :y [10 20 15 25 18 ]
2624 :z [1 2 1 2 1 ]}))
2725
28- ; ; Why is the plot not Kindly annotated?
29- ; ; Tableplot returns annotated values
26+ ; ; We call tableplot on the dataset:
3027
3128(-> scatter-ds
3229 (tp/base {:=title " Sample Scatter Plot" })
3330 (tp/layer-point {:=x :x
3431 :=y :y }))
3532
3633; ; Why is the plot not Kindly annotated?
37- ; ; Tableplot returns annotated values
34+ ; ; Tableplot returns annotated values.
3835
3936(-> scatter-ds
4037 (tp/base {:=title " Sample Scatter Plot" })
5552
5653; ; Other types of plots:
5754
58- ; ; using layer-bar instead of layer-point
55+ ; ; Using layer-bar instead of layer-point
5956
6057(-> scatter-ds
6158 (tp/base {:=title " Sample Scatter Plot" })
You can’t perform that action at this time.
0 commit comments