Skip to content

Commit

Permalink
Convert strings to symbols in README
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Oct 5, 2021
1 parent 34fbc69 commit f7f8231
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ Please note that **the package is in an early stage**. Its API is subject to bre
Here is a small example of a simple scatterplot from the `penguins` dataset of the `palmerpenguins` package :

```r
library(obsplot)
library(palmerpenguins)
data(penguins)

obsplot(penguins) |>
mark_dot(x = "bill_length_mm", y = "bill_depth_mm", stroke = "sex") |>
mark_dot(x = bill_length_mm, y = bill_depth_mm, stroke = sex) |>
opts(grid = TRUE)
```

Expand All @@ -36,9 +37,9 @@ obsplot(stateage, height = 660) |>
mark_ruleY(
transform_groupY(list(x1 = "min", x2 = "max"), xy)
) |>
mark_dot(xy, fill = "age", title = "age") |>
mark_dot(xy, fill = age, title = age) |>
mark_text(
transform_selectMinX(xy), textAnchor = "end", dx = -6, text = "name"
transform_selectMinX(xy), textAnchor = "end", dx = -6, text = name
) |>
scale_x(
axis = "top", label = "Percent (%) →",
Expand Down

0 comments on commit f7f8231

Please sign in to comment.