Comments (3)
Do you mean something like the following?
visualize(dataset = "diamonds", xvar = "cut", yvar = "price", type = "bar", custom = TRUE) +
geom_bar(stat="identity", colour="red", fill = "orange")
In ggplot2, a bar-chart uses fill
to specify a specific variable to plot/color by. For example:
visualize(dataset = "diamonds", xvar = "cut", yvar = "price", type = "bar", fill = "clarity", custom = FALSE)
Winston's cookbook has some nice examples:
http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/
from radiant.
Ooops, I was dealing with a histogram,
from radiant.
You can add pretty much anything to a plot generated using visualize
that you want. However, I'm not sure if it is possible to edit a geom that has already been specified in ggplot2. I'll have to think about that a bit more. One issue is that color
is also a parameter for line and scatter plots that has a different meaning than you are looking for. Anyway, you are not restricted to using only the functions exported by radiant. You can still fall back on regular ggplot commands. For example:
ggplot(r_data[["W"]], aes(x = NumberOfPeople)) +
geom_histogram(fill = "blue")
from radiant.
Related Issues (20)
- Error: package ‘radiant’ is available as a source package but not as a binary HOT 3
- Geom_line color HOT 4
- lost the sync of my fork HOT 3
- Decision Tree: Issue with cost HOT 7
- Package ‘radiant’ was removed from the CRAN repository. HOT 8
- avoid MathJaxR dependency HOT 9
- Chi- Squared distribution Mean HOT 3
- Add URL param that would cause the session to NOT be saved HOT 1
- trouble loading radiant HOT 3
- logo HOT 4
- Dropdown variable list doesnt showup in the Visualize option HOT 1
- r 3.4 HOT 23
- Download button doesn't work properly HOT 2
- Readme has git merge conflict markers HOT 2
- Command options not generating when added to report HOT 4
- Regression - Center Option HOT 4
- Training Variable: same seed, different outputs HOT 3
- simulater for poisson restrict lambda to integer; result is constant 0 for lambda in (0,1) HOT 1
- How to set directory for load the data? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radiant.