R Shiny Dashboard Portfolio Project | 1973 USArrests Dashboard | R Shiny Tutorial for Beginners
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- R Shiny Dashboard Portfolio Project | 1973 USArrests Dashboard | R Shiny Tutorial for Beginners
R Shiny Dashboard Project
1973 USArrests Dashboard for beginners
Key features -
Shinydashboard layout
Multiple sidebar menuitems
conditional select input widgets
visualizations in multi tabPanel layout
3 file app structure (ui.r, server.r, global.r)
Link to Shiny App:
aagarw30.shiny...
Link to Github code:
github.com/aag...
Thanks so much. I have watched 100 times and it has literally helped me to develop an app.
Thanks for commenting. I am glad this was of help. Ty Abi
For the "object 'input' not found" error when replacing "Rape" with input$var1 between 21:50 and 23:33, the following seems to work: when you copy the visualization section from global.R to server.R, you need to delete the lines from global.R (when he returns to global.R at 23:35, you can see that portion of code has been removed). I don't think commands in global can access Shiny's input object, thus the error.
Hello, your observation on code from global.r is correct. What I coded in for visualisation part in global.r was to demonstrate how a visualisation piece of code can be made dynamic and then used that in server.r.
Pls use clean copy of code files from my GitHub in case of any errors.
To your point, variables/objects used in global.r is accessible to both ui and server components. Retain only those pieces here which needs to be global/common or expected to be accessed by either of ui or server side components. Ty Abi
Amazing tutorial., This series on shiny apps has really helped me in my internship journey. Continue making more tutorials like this one. Cheers
Thanks, will do! Have some pipeline and ideas. If anything specific, pls feel free to shoot me an email or comment here. ty Abi.
thank you so much brother. best tutorial.
I am just starting to use this app and following this tutorial. It is running for me till
dashboardPage(
dashboardHeader(title = "Welcome", titleWidth = "2000"),
dashboardSidebar(),
dashboardBody(),
)
But whenever I am trying to introduce my sidebar tabs like dashboardPage(
dashboardHeader(title = "Welcome", titleWidth = "2000"),
dashboardSidebar(
sidebarMenu(id = "sidebar",
menuItem("Dataset", tabName = "Data"),
)
),
dashboardBody(),
)
I have an error Error in sidebarMenu: argument is missing, with no default. Any idea how to resolve this?
Hello, thanks for watching and commenting. Sure can help. Reason for error is addition comma (,) you have in code after the menu item. Either remove that and run or add another menu item underneath. It should run fine after these changes. Hope this would help. If still running issues, pls reach out to me. Ty Abi
Thank you so much for this amazing tutorial 👍🏽
Thank you for commenting!
Thank you for the tutorial. I have learnt a lot
Thank you, I get an error object input not found when I change rape to input$var1
Me too. How did you resolve it?
Any headway on this question. I've been stuck here for some time. Any help would be appreciated.
I need to see the code snippet to reproduce and debug the error you are facing. ty Abi.
When i follow the steps till 23:33 and then execute I am getting an error Error in layout.plotly(., xaxis = list(title = input$var1)) :
object 'input' not found. Can you kindly help me with the rectification of the same please?
Hello Rahul, sure. Did you try running the code from GitHub or you coded in Rstudio local instance? If it is GitHub version then I will re run and test it for error to help you else you will have share code with me to troubleshoot so I can reproduce. Thanks for watching and commenting.
Thank you
You're welcome!
Everything goes fine i until i have to replace the "Rape" with "input$varl", then it returns "error, object "input not found". What am I missing?
Difficult to diagnose without seeing what code changes done. If there is any small reproducible which I can use to debug, happy to help. Ty Abi
Do you have an email address so I send a copy of my code so you can debug as I am unable to send files or code here
@@alfredgagariga1286 gmail at aagarw30
@@abhinavagrawal6317 I sent an email to you regarding the issue I complained about. A response would be greatly appreciated. Thanks
@@alfredgagariga1286 let me double check. Don’t remember receiving it. Ty Abi
Can you pls make a video how to use javascript in shiny application from the www folder
Sure, will do.
Thanks for sharing
You are very welcome! If this was helpful, please share with others so they can benefit. ty Abi.
Pure chaos
"On the right, we've got A few . . .". It is 100% INCORRECT to say, "on the right we've got few social media. . . ."
It's is incorrect English to leave out the article "a" in this sentence at 0:33. So many south Asians whose first language is on the Hindustani continuum make this mistake over and over and over.
Could you please send me the dataset? 🙏🏽
Hello, this dataset in inbuilt and comes along with R
What a dark project. Lol
😊 PЯӨMӨƧM