Skip to content

Commit

Permalink
bss plot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesmila committed Mar 7, 2024
1 parent 37ae45c commit 3d2a5db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions R/bss.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#' data(iris)
#' bssmodel <- bss(iris[,1:4],iris$Species)
#' bssmodel$perf_all
#' plot(bssmodel)
#' }
#' @export bss
#' @aliases bss
Expand Down
4 changes: 2 additions & 2 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ plot.ffs <- function(x,plotType="all",palette=rainbow,reverse=FALSE,
ggplot2::geom_point(ggplot2::aes_string(colour="nvar"),size=size)+
ggplot2::geom_point(data=output_df[bestmodels, ],
ggplot2::aes_string(x = "run", y = "value"),
pch=pch,colour=marker,lwd=size)+
pch=pch,colour=marker,size=size)+
ggplot2::scale_x_continuous(name = "Model run", breaks = pretty(output_df$run))+
ggplot2::scale_y_continuous(name = metric)+
ggplot2::scale_colour_gradientn(breaks=seq(2,max(output_df$nvar),
Expand All @@ -298,7 +298,7 @@ plot.ffs <- function(x,plotType="all",palette=rainbow,reverse=FALSE,
ggplot2::geom_point(ggplot2::aes_string(colour="nvar"),size=size)+
ggplot2::geom_point(data=output_df[bestmodels, ],
ggplot2::aes_string(x = "run", y = "value"),
pch=pch,colour=marker,lwd=size)+
pch=pch,colour=marker,size=size)+
ggplot2::scale_x_continuous(name = "Model run", breaks = pretty(dfint$run))+
ggplot2::scale_y_continuous(name = metric)+
ggplot2::scale_colour_manual(values = cols, name = "variables")
Expand Down
1 change: 1 addition & 0 deletions man/bss.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3d2a5db

Please sign in to comment.