Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polar coordinates #491

Closed
cpsievert opened this issue Mar 10, 2016 · 2 comments
Closed

polar coordinates #491

cpsievert opened this issue Mar 10, 2016 · 2 comments
Labels

Comments

@cpsievert
Copy link
Collaborator

There's some useful math stuff here -- https://github.com/hadley/ggplot2/blob/5f4af9eafed9cbd7e3c84285fe3c9047f1ccb17d/tests/testthat/test-coord-polar.r

dat <- data.frame(
    theta = c(0, 2*pi,   2,   6, 6, 1,    1,  0),
    r     = c(0,    0, 0.5, 0.5, 1, 1, 0.75, .5)
)

ggplot(dat, aes(x = theta, y = r)) + geom_path() +
    geom_point(alpha = 0.3) + coord_polar()
@cpsievert
Copy link
Collaborator Author

We'll have to add something like this ggplotly.R

if (inherits(p$coordinates, "CoordPolar")) {
    # add angularaxis to layout and warn about no subplot availiability
}

https://plot.ly/javascript/polar-chart/

@cpsievert
Copy link
Collaborator Author

Closing in favor of #878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant