A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cran.rstudio.com/web/packages/rlang/../plotcli/vignettes/plotcli_wrappers.html below:

Vignette For plotcli R6 class usage


# make sin 
x <- seq(0, 2*pi, length.out = 50)
y <- sin(x)

# Create a line plot
plotcli_line(x = x, y = cos(y), color = "green")
#> 
#>                                                                           
#>            ┌────────────────────────────────────────────────────────────┐ 
#>        1.0 │***                         *****                         **│ 
#>            │   *                       *     *                       *  │ 
#>            │    *                     *      *                      *   │ 
#>            │    *                     *       *                    *    │ 
#>            │     *                   *         *                   *    │ 
#>        0.9 │     *                  *           *                  *    │ 
#>            │      *                 *           *                 *     │ 
#>            │      *                *             *                *     │ 
#>            │      *                *             *               *      │ 
#>   y    0.8 │       *              *              *               *      │ 
#>            │        *             *               *             *       │ 
#>            │        *             *               *             *       │ 
#>            │         *           *                 *           *        │ 
#>            │         *           *                 *          *         │ 
#>        0.7 │          *         *                  *          *         │ 
#>            │          *         *                   *        *          │ 
#>            │           *       *                     *       *          │ 
#>            │           *      *                       *     *           │ 
#>            │            *    *                         *    *           │ 
#>        0.5 │             ****                           ****            │ 
#>            └────────────────────────────────────────────────────────────┘ 
#>                                                                           
#>              0.0           1.6           3.1            4.7          6.3  
#>                                                                           
#>                                          x                                
#> 
plotcli_line(x = x, y = x, color = "magenta", braille = FALSE)
#> 
#>                                                                           
#>            ┌────────────────────────────────────────────────────────────┐ 
#>        6.3 │                                                        ****│ 
#>            │                                                     ***    │ 
#>            │                                                  ***       │ 
#>            │                                               ***          │ 
#>            │                                            ***             │ 
#>        4.7 │                                          **                │ 
#>            │                                      ****                  │ 
#>            │                                    **                      │ 
#>            │                                ****                        │ 
#>   y    3.1 │                             ***                            │ 
#>            │                          ***                               │ 
#>            │                       ***                                  │ 
#>            │                    ***                                     │ 
#>            │                 ***                                        │ 
#>        1.6 │               **                                           │ 
#>            │           ****                                             │ 
#>            │         **                                                 │ 
#>            │     ****                                                   │ 
#>            │  ***                                                       │ 
#>        0.0 │**                                                          │ 
#>            └────────────────────────────────────────────────────────────┘ 
#>                                                                           
#>              0.0           1.6           3.1            4.7          6.3  
#>                                                                           
#>                                          x                                
#> 

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4