Skip to content

Abnormal in geom_smooth #399

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

Closed
jonwenjen opened this issue Jan 15, 2016 · 3 comments
Closed

Abnormal in geom_smooth #399

jonwenjen opened this issue Jan 15, 2016 · 3 comments
Labels

Comments

@jonwenjen
Copy link

In ggplot2, it's a smooth ine.
But same code in plotly it become strange curve as attachment.

Code:
test = paste ("select * from file order by WFR",sep="")
d <- read.csv.sql("raw1.csv", sql = test)
d$WFR <- factor(d$WFR, levels = unique(as.character(d$WFR)))
g <- ggplot(d,aes(x=WFR,y=BINE, colour = Group1)) + geom_point() + geom_smooth(aes(group=1))
p <- ggplotly(g)
p
2016-01-15 22_32_48-can t keep order as input in plotly by ggplot2 - jonwenjen gmail com - gmail

@cpsievert
Copy link
Collaborator

Would it be possible to share the csv file as well?

@jonwenjen
Copy link
Author

Hi cpsievert

File is as following.

raw1.zip

@cpsievert
Copy link
Collaborator

This should be fixed in f1900cc. Let us know if you still have problems.

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

2 participants