Skip to content

Commit

Permalink
add mention to error in transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Coretta committed Aug 2, 2018
1 parent bcef263 commit 8e48aee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vignettes/polar-gams.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ tongue
The spline data is in cartesian coordinates. The function `polar_gam()` converts the coordinates to polar and fits a GAM to the data.
The polar coordinates are calculated based on the origin of the probe, which is estimated if `origin = NULL` using the fan lines specified with the argument `fan_lines` (the defaults are `c(10, 25)`).

If you get an error relating to `lm.fit`, try to change the `fan_lines` to values different from the default.

```{r polar-place}
tongue_it01 <- filter(tongue, speaker == "it01")
Expand Down
2 changes: 2 additions & 0 deletions vignettes/transform-coord.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ polar <- tongue %>%
The function returns a data set with two new columns: `radius` and `theta`.
It also prints the calculated origin.

If you get an error relating to `lm.fit`, try to change the `fan_lines` to values different from the default.

We can now plot the contours using polar coordinates in a cartesian system.
Notice that the tip of the tongue is on the left (rather than the right, as in the original data).

Expand Down

0 comments on commit 8e48aee

Please sign in to comment.