docs/func_reference.md

Reference

plot_to_card : Convert a plot to a card

More

Usage: ``` plot_to_card(plot)

```

Arguments: * plot: the name of a plot (works only for plots with the class gg for now).

Examples: ``` library(ggplot2)

plot1 <- ggplot(mtcars, aes(hp, drat)) + geom_point()

tinyslider(plot_to_card(plot1))

```

tinyslider-shiny : Shiny bindings for tinyslider

More

Usage: ``` tinysliderOutput(outputId, width = "100\%", height = "400px")

renderTinyslider(expr, env = parent.frame(), quoted = FALSE)

```

Arguments: * outputId: output variable to read from

tinyslider : Create a carousel with tinyslider

More

Usage: ``` tinyslider( elementId = NULL, ..., options = list(), responsive_options = list() )

```

Arguments: * elementId: Id of the carousel

Examples: ``` tinyslider( tinyslider_card( title = "First title", subtitle = "First subtitle", content = paste0( "Lorem Ipsum is simply dummy text of", "the printing and typesetting industry. Lorem Ipsum has been the", "industry's standard dummy text ever since the 1500s,", "when an unknown printer took a galley of type and scrambled", "it to make a type specimen book." ), image = "https://placeimg.com/200/150/nature" ), tinyslider_card( "Second title", "Second subtitle", "There is a button below", button_text = "See more", image = "https://placeimg.com/200/150/nature/2" ), tinyslider_card( "Third title", subtitle = NULL, content = paste0( "Lorem Ipsum is simply dummy text of", "the printing and typesetting industry. Lorem Ipsum has been", "the industry's standard dummy text ever since the 1500s,", "when an unknown printer took a galley of type and", "scrambled it to make a type specimen book. It has", "survived not only five centuries, but also the leap into", "electronic typesetting, remaining essentially unchanged.", "It was popularised in the 1960s with the", "release of Letraset sheets containing Lorem Ipsum passages,", "and more recently with desktop publishing", "software like Aldus PageMaker including versions of Lorem Ipsum." ) ), options = list( loop = TRUE, autoplay = TRUE, autoplayTimeout = 1000 ) )

```

tinyslider_cards : Create cards for the tinyslider carousel

More

Usage: ``` tinyslider_card( title = NULL, subtitle = NULL, content = NULL, button_text = NULL, image = NULL, width = NULL )

tinyslider_card_2( title = NULL, subtitle = NULL, content = NULL, button_text = NULL, image = NULL, width = NULL )

```

Arguments: * title: Title of the card

Examples: tinyslider_card("This is a title", "This is a subtitle")



etiennebacher/shinymisc documentation built on Jan. 1, 2021, 1:14 a.m.