Displaying 20 results from an estimated 30000 matches similar to: "Scruffy Bar Chart Question"
2008 Feb 29
1
Scruffy Stacked Bar Chart
Hi-
Trying to do a stacked bar chart, but nothing is rendering when I add
more then 1 bar:
This works:
graph = Scruffy::Graph.new(:title => "My Chart")
graph.add :stacked do |stack|
stack.add(:bar, ''Stack1'', [10,10])
end
This doesn''t:
graph = Scruffy::Graph.new(:title => "My Chart")
graph.add :stacked
2007 Nov 05
0
Scruffy > MVC architecture?
Hi,
I am a newby in rails...and i have read that scruffy is a great tool to
create/display images.
Now i find the code below for example...
graph = Scruffy::Graph.new
graph.title = "Comparative Agent Performance"
graph.value_formatter = Scruffy::Formatters::Percentage.new(:precision
=> 0)
graph.add :stacked do |stacked|
stacked.add :bar, ''Jack'', [30, 60, 49, 29,
2007 Aug 09
1
displaying svg chart
dear railers
I was attempting to display a svg chart inside a tooltip in rails
using Scruffy.
my browser is Firefox 2 and i am using WEBRICK.
when i render inside the controller using
graph.render(:size=> [255,205], :to => ''C:\xyz.svg)
and serve iit via rhtml using the <embed> tag.
Instead of the chart inside the tooltip i get a dialog box asking me
to open it ... with
2008 Oct 26
1
Using the legend function inside a bar chart error.bars function
Hello,
I am just starting out using R on my Uni course. I have been given a function to work with that adds error bars to a bar chart. I want to add a legend and have been trying to amend the code in the function error.bars (see below) so it automatically places a legend on the chart. It does this, but the legend is sitting over the top of one of my data columns. I need the function to decide
2013 Apr 22
0
ggplot-display text in bar chart
I want to show counts value on stacked bar chart in ggplot2. I found
similar question here
http://stackoverflow.com/questions/6644997/showing-data-values-on-stacked-bar-chart-in-ggplot2
but that one shows value instead of counts.
My data frame(dat1) is sth like this:
Group Length Width
1 1.1 0.2
2 1.1 0.3
2 1.0 0.4
3 1.2
2007 Feb 19
2
Integrate scruffy graph in rails view?
Hi everybody,
I''m using scruffy to create some graphs, and would like to integrate
them into a regular view (i.e. show them in an <img> tag).
However, I get errors when using img_tag, or the image doesn''t load if
I try saving the graph to disk and then loading them in html.
Generating the graph and linking to it works, however then I only have
the graph open in a new
2010 Mar 03
1
How to create a line and bar panel chart with two different axes?
I need to create a line and bar panel chart with two different axes. I tried
in lattice but couldn't get it worked. Here is my code:
data(barley)
barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(1,6), stack = F,
auto.key = list(points = FALSE, rectangles = TRUE, space =
"right"),
ylab = "Barley Yield
2011 Mar 23
4
Bar Chart
How do you do a bar chart of 2 vectors?
I have one vector which has 10 numbers, and another which has 10 names.
The numbers are the frequency of the corresponding name, but when I do a bar
chart it says that there is no height. Thanks.
--
View this message in context: http://r.789695.n4.nabble.com/Bar-Chart-tp3399924p3399924.html
Sent from the R help mailing list archive at Nabble.com.
2010 Feb 05
1
ggplot stacked bar chart help
I'm trying to create a stacked bar chart with x=month, y=volume, and
factor=type.
volume type month
100 A SEP09
200 A OCT09
300 A DEC09
400 B SEP09
500 B OCT09
600 B DEC09
700 C SEP09
800 C OCT09
900 C DEC09
Following Hadley's examples, I get 3 bars with SEP09: 3-A,
2011 Oct 25
1
Bar chart: break long bars
Dear all,
I have a problem with my stacked bar charts. I have one very long bar, hence
I would like to break the x-axis at a certain point so that the shorter bars
can be seen better.
Here is a cooked up example:
library(lattice)
group <- rep(1:3,10)
x <- runif(30, 0, 100)
y <- runif(30, 0, 100)
x[5] <-500
z <- rep(seq(1:10),3)
z <- z[order(z)]
frame <-
2010 Jul 28
1
Help Creating a Stacked Bar Chart with Color Coding
I have a data set of the following form:
Johnson 4
Smith 4
Smith 2
Smith 3
Garcia 1
Garcia 4
Rodriguez 2
Adams 2
Adams 3
Adams 4
Turner 4
Turner 3
And I'd like to create a stacked bar chart that has scores on the x-axis and
the bars are broken up by judges name. Whenever I try to do this though
2009 Dec 02
0
Stacked bar chart help.
Can't figure this out. I have the following list of salary averages per
year, per position. The dput output is:
> dput(salaries)
structure(list(yearID = c(2009, 2009, 2009, 2009, 2009, 2009,
2009, 2009, 2009, 2008, 2008, 2008, 2008, 2008, 2008, 2008, 2008,
2008), AVG = c(8956855.61, 7886684.166126, 7534048.43102, 7406439.339471,
7219148.437934, 6697734.908336, 6400379.88398,
2003 Dec 16
2
Fw: [S] plot stacked bar chart in R
posting the question in r-help@ to get more feedback :-)
thanks,
Yun-Fang
----- Original Message -----
From: "Yun-Fang Juan" <yunfang at yahoo-inc.com>
To: <s-news at wubios.wustl.edu>
Sent: Tuesday, December 16, 2003 2:04 PM
Subject: [S] plot stacked bar chart in R
> Hi,
> I am trying to plot a stacked bar chart in R but am not able to find the
> documentation.
2010 Jun 24
2
Correctly plotting bar and scatter chart on 2-y axis plot with par(new=T)
Hello Nabble users,
A question about having two y axes on a chart. I'm trying to show on the
left (first) y axis a measure used in an experiment; the x axis shows the
experiment number, that has been sorted in a specific manner -- i.e. not
Experiments 1,2,3,n, but could be Experiment 6,1,18,n; the right (second) y
axis shows an experimental variable. The idea of the chart is to show how
2011 Jul 06
4
Showing which bars in a bar chart are significantly different
Hello,
a probably rather stupid question to which I can't find an answer:
I have a bar chart, and I want to present which bars are significantly
different by placing a line with an asterisk above then (similarly to fig. 3
in: http://jnm.snmjournals.org/content/46/4/574.figures-only).
Does anyone have a reference where can I find some instructions how to learn
this?
Thanks a lot!
Omer
--
2011 Feb 18
1
clustered bar chart help
Hi,
Can anyone help me to plot a chart graph? I have a data set like this. I
would like a bar chart graph which mouse1's two treatments are clustered
together, so on.
I tried with barplot, but couldn't get it right.
Thanks
Johnny
Mouse1
Mouse2
Mouse3
Trial
Cont
Treat
Cont
Treat
Cont
Treat
1
2.4
4.3
2
4.3
2
7
2
2.8
5.4
2.8
6
2
8
3
3.1
4.5
3
4.5
2009 Sep 11
1
bar chart with means - using ggplot
Like this?
# example using qplot
library(ggplot2)
meanprice <- tapply(diamonds$price, diamonds$cut, mean);meanprice
cut <- factor(levels(diamonds$cut), levels = levels(diamonds$cut))
qplot(cut, meanprice, geom="bar", stat="identity", fill = I("grey50"))
dev.new() # create a new graph to compare with qplot
# Example using ggplot
ggdata <-
2008 Feb 18
2
R graphics question: "binary" bar chart
Hello!
I would like to visualize the hospitalization within one year of several
patients using a bar chart. For each patient the stay in a hospital
should be illustrated with a dark colour a if there is a stay at home
between 2 hopital stays, it should be illustrated with a bright colour.
e.g.
P1 |//////| |///| |////////|
P2 |//////////|
P3 |//|
2012 Feb 02
1
"shifted" bar chart / battleship curve
What I want to do is create a horizontal bar chart matrix for a set of data that have a common set of variables (e.g., % of As, % of Bs, etc.) listed on the Y-axis and groups (e.g., Classes) on the X-axis. The key here is that the bars for each individual class plot are "centered" rather than left or right-justified. In archaeology plots similar to this are called battleship curves or
2013 Mar 08
4
create bar chart with different totals in a bar
Hello together,
perhabs anyone of you, has an ideal, how i can do this:
I have a matrix, like this one:
[,1] [,2] [,3]
[,4]
abnr2 11425 11425 11555 11888
TIME 2 1 1 2
Cat 1 2 1