Error in ggint $ map_layout (panel, plot $ facet, layer_data, plot $ data): unused argument (plot $ data)

3

After updating the libraries in RStudio , I get the error that has to do with the library ggplot2 .

p <- ggplot(overviewplotdata, aes(x=Dataset,
                                    y=Well, 
                                    fill=value,
                                    alpha=0.8)) 
  p <- p + geom_raster()
  p <- p + labs(x = "Knowledge Area", y = "Well") 
  p <- p + scale_colour_manual(values=c("red", "green"))
  p <- p + guides(fill=FALSE)
  p <- p + guides(alpha=FALSE)
  p <- p + theme(plot.background = element_rect(fill = "transparent",
                                                colour = NA),
                  panel.background = element_rect(fill = "transparent",
                                                  colour = NA),
                  panel.grid.major = element_line(colour = "grey")
                )
print(p)
  

Error in ggint $ map_layout (panel, plot $ facet, layer_data, plot $ data):   unused argument (plot $ data)

the version of ggplot2 is 2.1.0

Thank you very much.

    
asked by olgalucegu 16.03.2016 в 18:33
source

1 answer

1

Version 2.1.0 of ggplot2 has problems versions of plotly 2.0. , this is documented in:

link

Update plotly:

link

    
answered by 16.03.2016 в 19:01