Skip to content

Commit 84453f9

Browse files
committed
Fix #219: update PairPlots.jl in docs
1 parent c6acf9e commit 84453f9

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

docs/Project.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[deps]
2+
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
23
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
34
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
45
DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8"
56
PairPlots = "43a3c2be-4208-490b-832a-a21dcd55d7da"
6-
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
77
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
88
TableTransforms = "0d432bfd-3ee1-4ac1-886a-39f05cc69a3e"
99
TransformsBase = "28dd2a49-a57a-4bfb-84ca-1a49db9b96b8"
1010

1111
[compat]
1212
Documenter = "0.27"
13-
PairPlots = "=0.6.0"

docs/src/index.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ of column names, imputation of missing data, and more.*
4848

4949
## Usage
5050

51-
Consider the following table and its corner plot:
51+
Consider the following table and its pairplot:
5252

5353
```@example usage
5454
using TableTransforms
55-
using Plots, PairPlots
55+
using CairoMakie, PairPlots
5656
using Random; Random.seed!(2) # hide
57-
gr(format=:png) # hide
5857
5958
# example table from PairPlots.jl
6059
N = 100_000
@@ -64,15 +63,15 @@ c = randn(N)
6463
d = c .+ 0.6randn(N)
6564
table = (; a, b, c, d)
6665
67-
# corner plot of original table
68-
table |> corner
66+
# pairplot of original table
67+
table |> pairplot
6968
```
7069

7170
We can convert the columns to PCA scores:
7271

7372
```@example usage
7473
# convert to PCA scores
75-
table |> PCA() |> corner
74+
table |> PCA() |> pairplot
7675
```
7776

7877
or to any marginal distribution:
@@ -81,7 +80,7 @@ or to any marginal distribution:
8180
using Distributions
8281
8382
# convert to any Distributions.jl
84-
table |> Quantile(dist=Normal()) |> corner
83+
table |> Quantile(dist=Normal()) |> pairplot
8584
```
8685

8786
Below is a more sophisticated example with a pipeline that has
@@ -98,7 +97,7 @@ f5 = Interquartile()
9897
pipeline = (f1 → f2 → f3) ⊔ (f4 → f5)
9998
10099
# feed data into the pipeline
101-
table |> pipeline |> corner
100+
table |> pipeline |> pairplot
102101
```
103102

104103
Each branch is a sequence of transforms constructed with the `` (`\to<tab>`) operator.

0 commit comments

Comments
 (0)