小编Sab*_*bin的帖子

闪亮的R上的工具提示?

我希望在我的Shiny R应用程序中有一个工具提示.有没有简单的方法来实现这一目标?现在,我正在创建一个密度图,我想要一个简单的工具提示,显示"点击这里滑过几年",同时将鼠标悬停在滑块YEAR上.

用户界面:

library(shiny)
shinyUI(pageWithSidebar(
  headerPanel("Density Map"),
  sidebarPanel(
    sliderInput("slider_year", "YEAR:", 
                min = 2001, max = 2011, value = 2009, 
                format="####", locale="us"
    )
  )
 ),

  mainPanel(  
    plotOutput("event_heatmap_map", width = "100%", height = "100%")
  )
))
Run Code Online (Sandbox Code Playgroud)


服务器代码:

library(shiny)
library(ggmap)
library(ggplot2)
mydata <- read.csv("/var/shiny-server/www/dMetrics.csv")
shinyServer(function(input, output) {
    output$event_heatmap_map <- renderPlot(width = "auto", height = 640,{

        slice_year <- mydata[mydata$YEAR==input$slider_year,]
        map <- get_map(c(lon = -55.3632715, lat = 31.7632836), zoom = 3, source = 'google', maptype = c("terrain"), messaging = FALSE, color = 'color') …
Run Code Online (Sandbox Code Playgroud)

r shiny

55
推荐指数
2
解决办法
2万
查看次数

编辑Google动态排行榜

我正在使用带有Shiny R的Google Motion Chart,我无法编辑一些基本的东西.我是Shiny R的新手并且已经开始喜欢它了.这是我的代码:

ui.R

 library(shiny)
    shinyUI((
    mainPanel( 
        h4("Interactive Analytics"),
        htmlOutput("view_gviz")
    )
 ))
Run Code Online (Sandbox Code Playgroud)

shiny.R

 library(shiny)
 library(googleVis)     
 sample_data <- structure(list(YEAR = c(2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L, 2003L), STORM = structure(c(3L, 9L, 16L, 25L, 36L, 40L, 46L, 58L, 64L, 70L, 75L, 86L, 91L, 97L, …
Run Code Online (Sandbox Code Playgroud)

r shiny googlevis

26
推荐指数
1
解决办法
1858
查看次数

你如何操纵docker注册表2.0和v2 API中的标签?

现在已经弃用了docker注册表的V1,我们启动了一个没有太多待办事项的v2私有仓库.问题在于我们依靠许多v1 API来管理部署标记.

截至目前,我们可以轻松列出标签:

> curl https://repo-dns:5000/username/reponame/tags/list
Run Code Online (Sandbox Code Playgroud)

但是删除标签似乎包含的不仅仅是标签,而且似乎失败了:

> curl -X DELETE https://repo-dns:5000/v2/username/reponame/manifests/tagtodelete
{"errors":[{"code":"UNSUPPORTED","message":"The operation is unsupported."}]}
Run Code Online (Sandbox Code Playgroud)

还不清楚如何添加新标签 - 它过去常常像:

> echo my_image_id |curl -X PUT https://repo-dns:5000/v1/repositories/username/reponame/tags/newtag
Run Code Online (Sandbox Code Playgroud)

我查看了API文档,但不清楚如何做到这一点.

是否有可能继续添加和删除标签,如果是这样,如何?

docker docker-registry

6
推荐指数
1
解决办法
1231
查看次数

标签 统计

r ×2

shiny ×2

docker ×1

docker-registry ×1

googlevis ×1