ramnathv / rchartsshiny Goto Github PK
View Code? Open in Web Editor NEWInteractive Visualizations with rCharts and Shiny
Home Page: http://ramnathv.github.io/rChartsShiny
Interactive Visualizations with rCharts and Shiny
Home Page: http://ramnathv.github.io/rChartsShiny
Hello,
I am trying to make different color for chart legend created by Rcharts in Rshiny. For example: I want to make chart legend font and label font in yellow color text instead of the black color text (because I customized my panel in dark grey. The default black color of the font from Rchart makes any font hard to tell). But I could not find how to do it. Any help will be greatly appreciated!
hair_eye = as.data.frame(HairEyeColor) p2 <- nPlot(Freq ~ Hair, group = 'Eye', data = subset(hair_eye, Sex == "Female"), type = 'multiBarChart' ) p2$chart(color = c('brown', 'blue', '#594c26', 'green')) p2 p2$chart(showLegend=TRUE) p4$chart(labelType="value")
I am trying to reproduce the shiny app as described here
However, when using
choices = sort(unique(dat2m$country))
I get the numbers 1 to 35 as possible choices, NOT the names of the countries (as one would expect).
If I use
choices = c("Belgium","Canada")
it does display these two countries correctly...
I am working on a Windows 7 platform,
using RStudio Version 0.98.1102,
rCharts 0.4.5,
and Shiny 0.11.1
Sorry to bring this up, as it looks like it was fixed in a commit 22 days ago, however the online shiny app still displays numeric country choices for me (screenshot taken 03/06/2015):
I looked at the code, which seemed like it couldn't possibly create numeric choices, so I cloned the files and ran a local version of the app. It's indeed correct:
Might the code have been fixed on github, but not updated on the shiny server?
This didn't really bother me; I just wanted to drop a courtesy note in case you weren't aware!
Am I doing something incorrectly?
Just downloaded the zip, extracted, cd
'd to the rChartOECD
dir and:
> library(shiny)
> runApp()
Loading required package: RCurl
Loading required package: bitops
Error in guess(varying) :
failed to guess time-varying variables from their names
> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Arch Linux
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=C
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rCharts_0.4.5 RCurl_1.95-4.8 bitops_1.0-6 shiny_0.13.2
loaded via a namespace (and not attached):
[1] Rcpp_0.12.7 lattice_0.20-33 digest_0.6.10 mime_0.5
[5] grid_3.3.1 R6_2.1.2 plyr_1.8.4 xtable_1.8-2
[9] whisker_0.3-2 RJSONIO_1.3-0 tools_3.3.1 httpuv_1.3.3
[13] yaml_2.1.13 htmltools_0.3.5
Hi Ramnath:
You are doing great work in this area. Quick question for you - i installed the rCharts package and tried a test plot but 'printChart' sets up the server at port 8100 but the web browser is unable to display anything.
Do I need to install anything else, like the polyCharts library in addition to rCharts, or is it all self-contained and there's something else going on.
Thanks
Hi,
Thanks for providing such a powerful tool. I want to share the rchart with other people, how can I paste the chart into a email? I tried to use the html, but the chart doesn't show up.
Best,
Rita
Hi there,
Awesome package -- I wanted to reproduce the example in Shiny with the code for this example: http://ramnathv.github.io/rChartsShiny/
Running the code in global.R and subsequently storing ui.R and server.R in a folder, I executed runApp and had this error returned:
runApp(".../rchart/")
Listening on port 8100
Error in addResourcePath(LIB$name, LIB$url) : object 'LIB' not found
I've Googled this error but couldn't find a solution. I did not edit any code whatsoever, I simply tried to reproduce the example. Could you help me out with this error?
Thanks!
Quick edit: I'm using R version 2.15.3 (2013-03-01) on OS X
I've got another question --
With the rPlot(), under ui.R I simply have to pass the identifier over to showOutput. Say the identifier is "chart", then I'd pass that to showOutput("chart", "polycharts").
Regarding nvd3Plot(), how would I go about displaying the plot in Shiny? showOutput() didn't work for me.
Thanks!
Alan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.