Skip to content

Commit d2103d9

Browse files
committed
issue #8 only occurs with shape alone; it doesn't occur when both shape and color are used
1 parent 251ab5d commit d2103d9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

examples/marks.Rmd

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,8 @@ g2(mtcars, x = 'mpg', y = 'hp', size = 'wt') |> mark_point()
2727

2828
### Shape by a variable
2929

30-
Note: in G2 v5, shape encoding in point marks may not always match
31-
between the legend and the plot. See [G2 source](https://github.com/antvis/G2)
32-
and [documentation](https://g2.antv.antgroup.com) for details.
33-
34-
```{r, eval=FALSE}
35-
g2(iris, x = 'Sepal.Width', y = 'Sepal.Length', color = 'Species',
36-
shape = 'Species') |>
30+
```{r}
31+
g2(iris, x = 'Sepal.Width', y = 'Sepal.Length', shape = 'Species') |>
3732
mark_point()
3833
```
3934

0 commit comments

Comments
 (0)