Skip to content

Abnormal in geom_smooth #399

Closed
Closed
@jonwenjen

Description

@jonwenjen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions