rlbarter / superheat

An r package for generating beautiful and customizable heatmaps
https://rlbarter.github.io/superheat/
235 stars 29 forks source link

yr.lim/yt.lim and yr.breaks/yt.breaks not working #60

Open veraeva opened 2 years ago

veraeva commented 2 years ago

superheat(dplyr::select(mtcars, -mpg),

scale the variables/columns

      scale = T,

      # add mpg as a scatterplot next to the rows
      yr = mtcars$mpg,
      yr.axis.name = "miles per gallon",
      yr.lim = c(0, 60),
      yr.breaks = c(10, 40),

      # add correlation between each variable and miles per gallon
      yt = cor(mtcars)[-1,"mpg"],
      yt.plot.type = "bar",
      yt.axis.name = "Correlation\nwith mpg")

gives me the following error: Error in superheat(dplyr::select(mtcars, -mpg), scale = T, yr = mtcars$mpg, : unused argument (yr.lim = c(0, 60), yr.breaks = c(10, 40))