rcharts

how do you publish rCharts with knitHTML

左心房为你撑大大i 提交于 2020-01-07 03:56:07
问题 I am trying to publish rCharts in knitrHTML, I keep getting this error: Quitting from lines 11-43 (ddd.Rmd) Error in file(con, "w") : cannot open the connection Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> <Anonymous> -> writeLines -> file Execution halted this is my kode within the markdown: rPlot(cpubusy ~ datetime, color = 'machine', type = 'point', data = server) How could I resolve this? what am I missing? 回答1: See - Ramnath answer. Basically to add rCharts and have it rendered

print group name on clicking a data point in a hPlot chart with shiny

陌路散爱 提交于 2020-01-04 16:24:21
问题 I have a shiny application that shows some charts using the highcharts library in rCharts. In some cases I have multiple graphs on a single chart which are created using the group option in hPlot. I wish to print all the parameters of a single data point on a chart when clicking on it : the x,y and group values. I'm attaching the code in order to achieve that: ui.r: library(shiny) library(rCharts) shinyUI(bootstrapPage( showOutput("chart", "highcharts"), textOutput("Text") )) server.r:

zoomable image map in RStudio Shiny

前提是你 提交于 2020-01-04 14:15:26
问题 I have a static png file of several thousand pixels height and width, and I would like to visualize parts of if by interactively zooming in and out of it in an RStudio Shiny website. What is the best way to have this working in a way that is relatively well performing? 回答1: You can use any of a number of javascript libraries. I chose https://github.com/elevateweb/elevatezoom to use in this example: library(shiny) runApp( list(ui = fluidPage( tags$head(tags$script(src = "http://www.elevateweb

Using percent width for Rcharts

 ̄綄美尐妖づ 提交于 2020-01-04 14:11:05
问题 I was wondering how to set the width of an rChart using % as opposed to px. I noticed in the source code that it defaults to pixels. I'm trying to use it in a shiny app, and fixed with charts seem to be an issue as they don't scale with the rest of the user interface. Is there a way around this? 回答1: This should be considered a hack, since neither rCharts or most of the libraries have built in responsive behavior. However, one change would be to define your own renderChart function with this

Create dynamic ggvis chart from uploaded file in shiny

家住魔仙堡 提交于 2020-01-01 11:55:13
问题 I am trying to use Shiny and ggvis to: 1) upload a data set 2) have the user select 2 columns (x, y) 3) return a ggvis plot displaying (x, y) from the uploaded data set I've tried editing the examples from the Shiny Interactivity page as well as the movie explorer example. However, no chart is displayed. I think my issue is around uploading the data set, but I don't know where to begin... Any suggestions? Note - I've also tried this using rCharts, but I run into similar problems where no

Create dynamic ggvis chart from uploaded file in shiny

十年热恋 提交于 2020-01-01 11:55:08
问题 I am trying to use Shiny and ggvis to: 1) upload a data set 2) have the user select 2 columns (x, y) 3) return a ggvis plot displaying (x, y) from the uploaded data set I've tried editing the examples from the Shiny Interactivity page as well as the movie explorer example. However, no chart is displayed. I think my issue is around uploading the data set, but I don't know where to begin... Any suggestions? Note - I've also tried this using rCharts, but I run into similar problems where no

Highlight all connected paths from start to end in Sankey graph using R

烈酒焚心 提交于 2019-12-28 05:54:21
问题 I want to highlight the whole path when i click on the node to know the whole story of specific node and here's an example- http://bl.ocks.org/git-ashish/8959771 . Please check this link and you will find the function that highlight the path in javscript, but take care please , this function doesn't do what i want, it highlight links related to the clicked node and the links related to the target nodes. what i want is to highlight all links related to the clicked node. d3 Sankey - Highlight

rCharts - not show x axis elements

拟墨画扇 提交于 2019-12-25 07:07:25
问题 I have a rPlot and I don´t want that it shows the names of the elements below the x axis. I´ve already done it with the following code, but appears an error above the plot. The word is hide, but if I give a double click, copy and paste I see that the word is "undefined". If I take off the line: ,numticks = 'none' the error does not appear. I need other solution to hide the names or fix this one. Thanks in advance! Luis ui.R shinyUI(pageWithSidebar( headerPanel("New Application"), sidebarPanel

rCharts - not show x axis elements

依然范特西╮ 提交于 2019-12-25 07:07:23
问题 I have a rPlot and I don´t want that it shows the names of the elements below the x axis. I´ve already done it with the following code, but appears an error above the plot. The word is hide, but if I give a double click, copy and paste I see that the word is "undefined". If I take off the line: ,numticks = 'none' the error does not appear. I need other solution to hide the names or fix this one. Thanks in advance! Luis ui.R shinyUI(pageWithSidebar( headerPanel("New Application"), sidebarPanel

rcharts: nPlot Formating x-axis with dates

断了今生、忘了曾经 提交于 2019-12-24 14:40:17
问题 I have a data.frame with dates and integers: df <- data.frame(date=seq.Date(from=as.Date("2012/01/01"), to=as.Date("2012/02/28"), by="1 day"), y=1:59) I want to plot the data.frame with rCharts nPlot: n <- nPlot(y ~ date, group = "team", data = df, type = "lineChart") n$xAxis( tickFormat = "#! function(d) {return d3.time.format('%Y-%M-%d')(new Date(d));} !#", rotateLabels = -90 ) n But the x-axis isn't formatted correctly. So how do I format the dates correctly? 回答1: In R as.numeric(someDate)