SORU
9 NİSAN 2011, CUMARTESİ


Nasıl puan ayrıştırmak ve Android Google Harita üzerinde bir rota çizebilir miyim?

Kaç puan almak & Android işletim sistemi, Google Haritalar rota çizebilirim?

CEVAP
19 EYLÜL 2014, Cuma


Bu ggvis parlak, bu hedefe ulaşmak için kullanır gallery item. deneyin. Galeri kaybolur diye, burada bir ipucu üretmek, identify(), ggvis kullanmaya benzer bazı minimal kodudur.

require(ggvis)
mtcars$model<-rownames(mtcars)
mtcars %>% ggvis(~wt, ~mpg,key:=~model) %>% 
  layer_points() %>% 
  add_tooltip(function(df) df$model)

Ve, daha kapsamlı, ama hala en az bir örnek:

require(shiny)
require(ggvis)
mtcars$model<-rownames(mtcars)

shinyApp(
  ui = fluidPage(
    sidebarLayout(
      sidebarPanel(h2("GGVis to Identify Points")),
      mainPanel(ggvisOutput("carsplot"))
    )
  ), 
  server = function(input, output) {
    vis <- reactive({ 
      mtcars %>% ggvis(~wt, ~mpg,key:=~model) %>% 
        layer_points() %>% 
        add_tooltip(function(df) df$model)
    })
    vis %>% bind_shiny("carsplot")
  }

)

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Anthony Le

    Anthony Le

    10 EKİM 2006
  • Cartoonium

    Cartoonium

    11 NİSAN 2011
  • The Slow Mo Guys

    The Slow Mo

    15 AĞUSTOS 2010