newPlot: new plot

Description Usage Arguments Author(s)

View source: R/insert_ui.R

Description

Inserts a new shiny plot object from the server code. Wraps the insert UI function.

Usage

1
2
3
4
newPlot(location, id, x = 1:10, y = rnorm(10), height = "400px",
  title = "Main", xlab = "X", ylab = "Y", placement = "beforeEnd",
  input = input, output = output, session = session,
  hidden = FALSE, immediate = FALSE)

Arguments

location

The existing object that the new shiny object will be placed relative to.

id

the id of the new shiny object.

x

vector of x values

y

vector of y values

height

height of the plot

title

plot title text

xlab

x axis subtitle text

ylab

y axis subtitle text

placement

Object placement relative to location object.

input

shiny input values list.

output

shiny output values list.

session

the current shiny session.

hidden

Should the object be hidded when created. Default = FALSE.

immediate

Should the object be created immediately. Default = FALSE.

Author(s)

Nathan Vaughan


nathanvaughan1/DST documentation built on Jan. 18, 2021, 8:40 p.m.