Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Jun 11, 2024
1 parent 8a9b542 commit 452b7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/plot-block.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ geom_point(color = .(color), shape = .(shape)) # Don't forget to wrap it with qu
```

Importantly, since we use `.(color)`, the field name must be __color__ and conversely for the shape.
Also note that, since the previous data contains the `ggplot` object, we must extract is data such that `data_cols <- function(data) colnames(data$data)`.
Also note that, since the previous data contains the `ggplot` object, we must extract its data located in `data$data`, such that the column names are obtained with `data_cols <- function(data) colnames(data$data)`.

This finally gives us:

Expand Down

0 comments on commit 452b7ad

Please sign in to comment.