Use
Create
Develop
FAQ
Troubleshooting
History: Profile_r_test9_rcharts
View page
Collapse Into Edit Sessions
Source of version: 4
«
»
! rCharts {DIV(float="right")}{img src="http://ramnathv.github.io/rCharts/libraries/frameworks/minimal/images/rCharts.png" desc="http://rcharts.io"}{DIV} -+__rCharts__+- is an R package to create, customize and publish interactive javascript visualizations from R using a familiar lattice style plotting interface. It has been created by [http://github.com/ramnathv|Ramnath Vaidyanathan]. See more here: http://rcharts.io/ Below you will find a series of examples of nice charts using -+__rCharts__+- and the corresponding javascript library used in each case. __Page contents__: {maketoc title="" levels="2,3"} !! Introduction For these examples to work in a website, you need to change the location of the library they look for. By default they are set to use the library included in the R package rCharts, but the webserver usually can't access directly those libraries, since they are out of its reach. To avoid this issue, we can create an alias in the apache configuration for the website. You need to open the apache configuration file, whch might be located at -+/etc/apache2/sites-enabled/000-default+- (adapt to your case) {CODE(colors="shell", ln="1", caption="Command to open the file for edition in a shell as root")} nano /etc/apache2/sites-enabled/000-default {CODE} {CODE(colors="html4strict", ln="1", caption="Portion to add to /etc/apache2/sites-enabled/000-default or equivalent for your site with Apache 2.2")} Alias /rcharts_libraries/ "/usr/local/lib/R/site-library/rCharts/libraries/" <Directory "/usr/local/lib/R/site-library/rCharts/libraries/"> Options All AllowOverride All Order allow,deny Allow from all </Directory> {CODE} Then you can save it (-+Ctrl+X+- in nano editor) The whole configuration file for the site should look like the example below (adapt it to your case): {CODE(colors="html4strict", ln="1", caption="Example of configuration file for the website")} <VirtualHost *:80> ServerAdmin webmaster@example.com DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Satisfy Any Allow from all </Directory> Alias /rcharts_libraries/ "/usr/local/lib/R/site-library/rCharts/libraries/" <Directory "/usr/local/lib/R/site-library/rCharts/libraries/"> Options All AllowOverride All Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> {CODE} Then restart the webserver (adapt to your case): {CODE(colors="shell", ln="1", caption="Command to restart apache2 in GNU/Linux boxes as root")} service apache2 restart {CODE} At this time you can already use the javascript and css files provided in the package rCharts from your R scripts in Tiki, with the base url __http://example.com/rcharts_libraries/__ !!!! Tweaks for Apache 2.4 If you have the webserver Apache 2.4 (likely if you have Ubuntu 13.10 Saucy, for instance), the you need to adjust your vhost: !!!!!# First: +/- on Options: Some Options parameters needs the +/- syntax. [http://httpd.apache.org/docs/current/mod/core.html#options|Read more here]. This might be especially important when mixing +/- on some directives (read the previous link to see more). Change: {CODE()} Options Indexes FollowSymLinks MultiViews {CODE} to: {CODE()} Options +Indexes +FollowSymLinks +MultiViews {CODE} !!!!!# Second: Allow/Deny Apache now does access control via [http://httpd.apache.org/docs/trunk/mod/mod_authz_host.html|mod_authz_host] Change: {CODE()} Order allow,deny Allow from all {CODE} to: {CODE()} Require all granted {CODE} Some more info here on [http://httpd.apache.org/docs/trunk/upgrading.html|upgrading from Apache 2.2 to 2.4]. !! Examples {LISTPAGES(showNameOnly="y",find="r_test9_rcharts_",sort="pageName_asc")}{LISTPAGES} !! Credits Most of the implementation in -+__rCharts__+- seems to be inspired by [https://github.com/metagraf/rHighcharts|rHighcharts] and [https://github.com/metagraf/rVega|rVega]. The author have reused some code from these packages verbatim, and would like to acknowledge the efforts of its corresponding author [https://github.com/reinholdsson|Thomas Reinholdsson]. !! License -+__rCharts__+- is licensed under the MIT License. However, the Polycharts JavaScript library that is included in this package is not free for commercial use, and is licensed under Creative Commons 3.0 Attribution & Non-commercial. Read more about its license at http://polychart.com/js/license.
History
Enable pagination
rows per page
HTML diff
Side-by-side diff
Side-by-side diff by characters
Inline diff
Inline diff by characters
Full side-by-side diff
Full side-by-side diff by characters
Full inline diff
Full inline diff by characters
Unified diff
Side-by-side view
Information
Version
Fri 14 of Oct, 2016 09:17 GMT-0000
Xavi (as xavidp - admin)
Mass search and replace
7
Actions
View
Source
Thu 09 of Jun, 2016 12:40 GMT-0000
Xavier de Pedro
updated to apache 2.4
6
Actions
View
Source
Tue 28 of Jan, 2014 21:08 GMT-0000
Xavier de Pedro
updated find string
5
Actions
View
Source
Sat 18 of Jan, 2014 12:52 GMT-0000
Xavier de Pedro
added info for when apache 2.4
4
Actions
View
Source
Tue 07 of Jan, 2014 13:53 GMT-0000
Xavier de Pedro
updated with two digits in page names
3
Actions
View
Source
Tue 17 of Dec, 2013 17:02 GMT-0000
Xavier de Pedro
added category
2
Actions
View
Source
Tue 17 of Dec, 2013 17:01 GMT-0000
Xavier de Pedro
first info
1
Actions
View
Source
Select action to perform with checked...
Remove
OK
Menu
Featured profiles
Profiles in Wizard
Profiles Todos
Handlers
Profiles Tester
Admin
of this site
Current Profiles
Tiki version
24.x
27.x
28.x
29.x
Deprecated
state
Not fully functional yet
alpha
beta
release
type
Available in the Profiles Wizard (12+)
Featured profiles
Full profile (out of the box & ready to go)
Learning profile (to show off feature)
Long tail
Mini-profile (can be included in other)
Profile-snippet (optional but needs another "parent" profile)
Security
Tests
Latest Changes
davidbeijinho
Profiles_in_Wizard
Tiki Profiles Tester
Test_all_tracker_field_types_profile
Consensus Forums
test_profile_change
Consensus_Forums_Instructions
Timesheets
Easy_GeoBlog
test_new_personal_blog_social_include
test_new_personal_blog_aio
test_new_personal_blog_vlog_include
test_new_personal_blog_about_include
test_new_personal_blog
test_new_small_organization_web_presence
Company_Intranet_21
personal_blog_and_profile_post1_include
personal_blog_and_profile_vlog_include
test_new_personal_blog_instructions
test_new_small_organization_web_presence_instructions
...more
Like almost all *.tiki.org sites, you can log in with your login from
https://tiki.org
(register over there)
Search
Find
Most Popular Tags
admin
agenda
alias
antibot
antibot captcha
app
archive
articles
banning
batch
blogs
calculations
calendars
cart
categories
cluster
codemirror
comments
computation
contact us
datachannel
debug
debug console
dropdown with other
error messages
features
file galleries
forums
geo
geocms
geolocation
group homepages
group watches
header
i18n
images
item link
items list
jquery
languages
location
map
maps
maths
menu
menupage
multilingual
ol3
ol5
openlayers
paypal
plugin
plugin alias
plugin datachannel
plugin fade
plugin tabs
plugin trackerlist
pretty trackers
print
project management
r
r project
realnames
rss
static
static text
statistics
stats
structures
syntax highlighter
tablesorter
template
trackers
user watches
visualization
watches
webservice
wiki
wiki argument variables
wiki structures
Tiki Newsletter
Subscribe to the Tiki newsletter.
Don't miss major announcements and other news!