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

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.

主站蜘蛛池模板: 松潘县| 乌拉特前旗| 达拉特旗| 宣武区| 章丘市| 岐山县| 娱乐| 牡丹江市| 萍乡市| 安吉县| 舞阳县| 广州市| 嵊州市| 三都| 苏尼特左旗| 辽中县| 石景山区| 安康市| 旬邑县| 石门县| 阿拉善右旗| 合水县| 通渭县| 清水河县| 唐海县| 崇左市| 宁都县| 茌平县| 宣武区| 睢宁县| 织金县| 鞍山市| 崇阳县| 禄劝| 清徐县| 上杭县| 镇远县| 金秀| 郸城县| 南岸区| 定日县|