Skip to Content
R Programming By Example
book

R Programming By Example

by Omar Trejo Navarro
December 2017
Beginner to intermediate
470 pages
12h 29m
English
Packt Publishing
Content preview from R Programming By Example

Adding static images

Images can enhance the appearance of your application and help your users understand the content. Shiny looks for the img() function to place image files in your application. To insert an image, simply call with the src specifying the images location. You can also include other HTML friendly parameters such as height and width (they will be passed as pixel values):

img(src = "image.png", height = 250, width = 250)

The image.png file must be in a folder named www in the same directory as the app.R script. Shiny will share any file placed here with your user's web browser, which makes www a great place to put images, style sheets, and other things the browser will need to build the wap components of your Shiny application. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Efficient R Programming

Efficient R Programming

Colin Gillespie, Robin Lovelace
R Programming

R Programming

Jared P. Lander

Publisher Resources

ISBN: 9781788292542Supplemental Content