get_plot {Logolas} | R Documentation

## Logo plot for given co-ordinates and fill values

### Description

Plots logo given the co-ordinates and fill values of the symbols.

### Usage

    get_plot(x, y, id, fill, colfill, lwd = 10, fill_symbol = TRUE)

### Arguments

`x` | The X co-ordinates of the symbol
`y` | The Y co-ordinates of the symbol
`id` | The id of the different points based on how it will be grouped
`fill` | The color vector used for filling the logo.
`colfill` | The color label for the borders of the plot.
`lwd` | Specifies the border width of the symbol. Defaults to 10.
`fill_symbol` | A binary. If TRUE, the function would fill the symbol by the color represented in `colfill`, else colors the boundary of the symbol by `colfill`. Defaults to TRUE.

### Value

Returns a plot of the symbol with the input co-ordinates and fill colors

### Examples

    angle2 <- c(seq(pi/2, 0, length.out=100), seq(0, -(3*pi/2), length.out=100))
    x1 <- 0.5 + 0.3*cos(angle2)
    y1 <- 0.5 + 0.5*sin(angle2)
    x2 <- 0.5 + 0.15*cos(angle2)
    y2 <- 0.5 + 0.35*sin(angle2)
    x <- c(x1, x2)
    y <- c(y1, y2)
    colfill <- "green"
    id <- c(rep(1, length(x1)), rep(2, length(x2)))
    fill <- c(colfill, "white")
    get_plot(x, y, id, fill, colfill, lwd=10, fill_symbol=TRUE)

[Package Logolas version 1.10.0 Index]