官术网_书友最值得收藏!

Widget types

Before we move on to a more advanced application, let's have a look at the main widgets that you will make use of within Shiny. I've built a Shiny application that will show you what they all look like, as well as their outputs and the type of data they return. To run it, just enter the following command:

> library(shiny)
runGist(6571951)

This is one of the several built-in functions of Shiny that allow you to run code hosted on the internet. Details about sharing your own creations in other ways are discussed in Chapter 9Persistence, Storage, and Sharing. The finished application looks like the following screenshot:

You can see the function names (checkboxGroupInput and checkboxInput) as numbered entries on the left-hand side of the panel; for more details, just type ?checkboxGroupInput into the console.

If you're curious about the code, it's available at gist.github.com/ChrisBeeley/6571951.

主站蜘蛛池模板: 锡林浩特市| 宣威市| 顺义区| 林甸县| 兰溪市| 金寨县| 偃师市| 天长市| 乌拉特中旗| 阿拉善左旗| 边坝县| 瑞金市| 哈巴河县| 云安县| 北票市| 图木舒克市| 方城县| 鄂伦春自治旗| 岗巴县| 凌源市| 太康县| 伽师县| 北碚区| 林西县| 霍林郭勒市| 田东县| 泸定县| 大城县| 萍乡市| 岚皋县| 邢台县| 兰溪市| 望江县| 青州市| 东阿县| 马尔康县| 富民县| 年辖:市辖区| 吕梁市| 康保县| 博客|