3. How to Input data and create an Output Based Dashboard with R shiny?

Опубликовано: 29 Октябрь 2024
на канале: Learn data analytics with us
1,040
5

In today's video what we will be discussing, How to Input data and create an Output Based Dashboard with R shiny.

what we will do that in my previous video as you have seen that we have created a very basic dashboard but in this video we will also talk about how you can get the input from the user interface and then how you can display that input that input information into the output layout so this is a kind of a dashboard which will be building so as you can see that in this time our user interface is on the right hand side i will also tell you guys that how you can move your user interface on the right hand side because the form is that whenever you create a user interface it will be on the left hand side but you can move around it anywhere on the screen and then with it by user interface i have added a text and then we will also discuss how you can add a text in your user interface and then within that after the writing down the test that the text is the dashboard is designed to get information from the for from the college student and with it below that text i have added text boxes so and then i will discuss that how you can add a textbook and how you can label that text box as you can see this the what is your college name is actually the label of the text box and then within that textbook i have written down lse which is showing it uh on the output window so whatever we will write down in this text with a text box it will be exhibited here on our output window and after that i have written down what is your degree level so this is the second text box which is labeled as what is your degree level and within that text box i have written down 18 which is shown then on our on here so this is just a start because in my later videos we will show how whatever user will up in the user interface can impact our graph but now in this video it's very basic so what i am whatever i am writing in the text boxes i want to show them on the output window and and other thing to note here is that i'm also playing around with the formatting in terms of that this first text that i have written down is in a very big format then the second a text box that i have entered is labeled in a medium size format and the last text box label is also in a small format and the same you can see in my output window i am playing around with the format sizing so we will also discuss how you can format the text in your dashboard so again this kind of dashboard will be trying to create through our shiny now so now i will go back to my screen and then open the r studio and then then we will start writing the code so as i will be writing down a new code so i will be going to my script so and i will open my script window in separate

so again this is my script i will be starting with because i will be using the shiny library so every time whenever you start writing a code it's better to mention the library you're working on otherwise you may get the error because r will unable to recognize that which library functions that you are using i will be saying library

so again first thing that we will be creating is a user interface first i will create it's a good habit to keep on commenting on your code file because it will allow you to understand what are you doing create the user interface

so now in order to create a user interface i will create an object and i will assign all my user interface to that object so i will be calling it as ui you can call it whatever you want and after that i will be using a function of shiny this shiny ui to define user interface

this is the function i will be using and within that function i will be using uh

option that shiny allowed is the fluid page which we also use in our previous videos too

and now within this fluid page i will start writing down my commands that okay what will be the title of my dashboard so in order to write down the title i will say

title

title panel

and after that if so i will be mentioning the title of the dashboard so if you guys remember so the title of my dashboard is my first dashboard app so i will go to here i will say my first dashboard so you can write down the title of the panel uh whatever you want



R Shiny Playlist:    • Learn Building R Shiny Dashboard with Us  
#rshiny #rstudio #intoduction #beginer