rCharts 패키지로 수천 개의 점을 그려보고자하지만 기본 매개 변수가 약간 느립니다. turboThresold 매개 변수를 0으로 설정하려고 시도했지만 도움이되지 않았습니다.수천 개의 점을 그릴 때 rCharts 성능 향상
- 100 점 음모를 꾸미고 : 00.05의
- 플로팅 1,000 포인트 : 00.54의
- 음모를 꾸미고 10000 개 포인트 : 17.00의
누구든지 향상시킬 수를 여기에
성능의 테이블 이 코드의 성능? 당신의 도움에 대한library(shiny)
library(rCharts)
runApp(
# User interface with 1 select box, 1 graph and 1 timer
list(ui = pageWithSidebar(
headerPanel(""),
sidebarPanel(
selectInput("value",NULL,choices=c(100,1000,10000), selected = 100)
),
mainPanel(
showOutput("plot", "highcharts"),
textOutput("timer")
)
),
# server side
server = function(input, output){
values<-reactiveValues()
values$timer <- NULL
# generating highcharts plot
output$plot <- renderChart2({
x <- 1:input$value
df <- data.frame(x, x^2)
names(df) <- c("x","xpower2")
values$timer <- Sys.time()
plot <- Highcharts$new()
plot$series(
data = toJSONArray2(df, json = F, names = F),
name = "xpower2",
type = "line"
)
plot$plotOptions(series=list(turboThreshold=0))
return(plot)
})
# calculating time
output$timer <- renderText({
input$value
isolate({
values$timer <- Sys.time() - values$timer
return(paste("Time elapsed :", round(values$timer,3) , "seconds"))
})
})
}
)
)
감사합니다, 매트 일반적으로
이 명령은 도움이되지 않습니다 중 하나 플롯 $의 plotOptions (시리즈 = 목록 (애니메이션 = FALSE, enableMouseTracking = FALSE)) – mbh86
시도 오는 –
안녕하세요 세바스찬 그림자/애니메이션/마커를 해제합니다. 불행히도 개선이 없습니다. – mbh86