我试图在 x 轴是Hebrew 时以闪亮的方式显示ggplot。我的代码:R
#server
shinyServer(
function(input, output, session) {
output$Plot <- renderPlot({
temp<-data.frame(x=c("?????","???","?????"),y=c(1,2,3))
ggplot(temp, aes(x = x, y = y)) + geom_point()
})
})
#ui
shinyUI(fluidPage(
sidebarLayout(
sidebarPanel(),
mainPanel("main panel",
plotOutput('Plot'))
)
))
Run Code Online (Sandbox Code Playgroud)
x 轴上的字母顺序错误。
外面的相同情节shiny没有问题。
知道如何解决这个问题吗?
谢谢
| 归档时间: |
|
| 查看次数: |
166 次 |
| 最近记录: |