Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个闪亮的应用程序,在 y 轴标签上显示欧元金额。它不会在绘图输出中呈现。我该如何解决这个问题?
以下是在server.R:
server.R
plot(monthRange, euroPerMonth/1000, type="l", main="Cost", xlab="Months", ylab="€ (000)")
我遇到的最接近的是这个;但是,我不确定如何在闪亮中应用它。
以下最小示例确实正确绘制了欧元符号。
将代码放在一个新R文件中并调用它app.R
R
app.R
server <- function(input, output) { output$cost <- renderPlot({ plot(2, main="Cost", xlab="Months", ylab="€") }) } ui <- fluidPage( mainPanel(plotOutput("cost")) ) shinyApp(ui = ui, server = server)
运行此程序时,我得到以下带有欧元符号的 GUI。
希望这可以帮助。