| sample-n-frac-keys | R Documentation | 
Sample a number or fraction of keys to explore
sample_n_keys(.data, size)
sample_frac_keys(.data, size)
.data | 
 tsibble object  | 
size | 
 The number or fraction of observations, depending on the
function used. In   | 
tsibble with fewer observations of key
library(ggplot2)
sample_n_keys(heights,
             size = 10) %>%
  ggplot(aes(x = year,
             y = height_cm,
             group = country)) + 
  geom_line()
library(ggplot2)
sample_frac_keys(wages,
                0.1) %>%
  ggplot(aes(x = xp,
             y = unemploy_rate,
             group = id)) + 
  geom_line()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.