View source: R/explore_trace.R
| explore_trace_search | R Documentation | 
Plot the count in each iteration
explore_trace_search(
  dt,
  iter = NULL,
  color = NULL,
  cutoff = 15,
  extend_lower = 0.95,
  ...
)
| dt | a data object collected by the projection pursuit guided tour optimisation in  | 
| iter | the variable to be plotted on the x-axis | 
| color | the variable to be coloured by | 
| cutoff | numeric; if the number of searches in one iteration is smaller than  | 
| extend_lower | a numeric for extending the y-axis to display text labels | 
| ... | arguments passed into geom_label_repel() for displaying text labels | 
a ggplot object for diagnosing how many points the optimiser(s) have searched
Other main plot functions: 
explore_space_start(),
explore_space_tour(),
explore_trace_interp()
# Summary plots for search points in two algorithms
library(patchwork)
library(dplyr)
library(ggplot2)
p1 <- holes_1d_better %>% explore_trace_search() +
  scale_color_continuous_botanical(palette = "fern")
p2 <- holes_2d_better_max_tries %>% explore_trace_search() +
  scale_color_continuous_botanical(palette = "daisy")
p1 / p2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.