Skip to content

Commit 34fd97e

Browse files
committed
added density example
1 parent 6de0f1a commit 34fd97e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

notebooks/tableplot_book/plotly_reference.clj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,14 @@ We are exploring various rules of thumbs to determine it automatically.
879879
(plotly/layer-density {:=x :sepal-width
880880
:=color :species}))
881881

882+
883+
;; Witn no substitution keys, we can rely on
884+
;; the default for `:=x` being the `:x` column:
885+
886+
(-> {:x (repeatedly 9999 rand)}
887+
tc/dataset
888+
plotly/layer-density)
889+
882890
(book-utils/include-fnvar-as-section #'plotly/layer-smooth)
883891

884892
(book-utils/md "#### Examples:")

0 commit comments

Comments
 (0)