r - 是否可以在使用闪亮包制作自己的仪表板以进行可视化时添加自己的 csv 或 txt 文件
问题描述
我正在使用闪亮和闪亮的仪表板包准备仪表板,现在我想添加我的数据以准备可视化。如何实现它。这是应用程序的布局计划。
ui <- dashboardPage(
dashboardHeader(title = "Row layout"),
dashboardSidebar(),
dashboardBody()
)
server <- function(input, output) {
driver.csv <- read.csv("E:/RMARKDOWN/driver.csv.csv", fileEncoding = "UTF-8")
New_DataSet1<-data.frame(driver.csv$ï..Year_AG,driver.csv$Severity_Desc,driver.csv$Injury.Type)
New_DataSet1
latest <- New_DataSet1[1:100,]
latest
d <- aggregate(latest$driver.csv.Injury.Type, by=list(chkID = latest$driver.csv.Severity_Desc), FUN=sum)
#barplot(d)
renderplot(d$x)
#barplot(d$x, xlab = d$chkID)
# barplot(d$x, names.arg = d$chkID)
}
shinyApp(ui,server)
解决方案
推荐阅读
- node.js - 如何使用 Next JS next/image 与 docker-compose 和 Minio 进行本地开发?
- c++ - C++ DLL(本地挂钩)和 C# 应用程序之间的合适 IPC
- r - dplyr 过滤器在极其简单的可重现示例中失败
- rust - Rust 无法推断 Sub 的类型
RHS的性状类型。为什么? - wpf - 以编程方式将事件处理程序附加到自定义子元素路由事件
- c# - 如何使用 System.Reflection.Metadata 分析 .NET 代码?
- javascript - 我无法捕获文本区域的值并将其保存到本地存储中
- python - 通过 webbrowser 库将 localhost 作为 url 运行
- python - 熊猫数据框中的不同值看起来相等但不同
- javascript - Angular 应用程序中的 Adobe Spectrum Web 组件实现;可能与否?