Displaying 20 results from an estimated 10000 matches similar to: "Possible to write text inside a bar of a barplot?"
2010 Jan 13
1
Recommended visualization for hierarchical data
Let's say I have data in the following schema that describes the number of
purchases a company has received from each County in the US:
State | County | Purchases
---------------------------------------
NJ | Mercer | 550
CA | Orange | 23
....
I would like to visualize what states contribute the most to the overall
total, and furthermore within those states, what Counties contribute the
most.
2010 Jan 14
3
Barchart bar lengths not proportionate
When I use barchart (with default formatting options), I get bars whose
lengths/heights are not proportional to their value. For example:
http://drop.io/wbagm6s/asset/capture-png
Many of the values in this chart are 1; however, because the blue bars
extend to the left of the "0" tick mark, those bars appear to represent
higher numeric values. Is there a way to make the length of the
2010 Jun 18
2
Drawing paths through a grid
I would like to draw a set of points that are equally spaced in a 2-D
grid. Then I would like to draw lines that illustrate different
directed paths through subsets of points. Imagine that the points
correspond to booths in a conference center, and I want to show the
various paths people took to visit the booths (using color to
highlight different types of paths). An example path might be: [(1,1),
2010 Jan 14
2
Newbie mistakes saving images to files
I am encountering problems using the png() function to save around 20 charts
to separate files.
My script is conceptually structured as follows:
### <script>
png("Image %03d.png")
# the following are calls to user-defined functions I wrote that call plot,
barchart, etc. with special arguments.
myPlot("a")
myPlot("b")
myPlot("c")
2018 May 21
0
draw borders of bars inside of the rectangles in a barplot
I recommend instead of no border, that you use a border with the same
color as the fill.
I do this in the likert functions in the HH package.
Rich
On Mon, May 21, 2018 at 10:59 AM, Martin Batholdy via R-help
<r-help at r-project.org> wrote:
> Dear R-users,
>
> I want to draw a barplot with beside=TRUE.
> One halve of the bars are drawn with a border, while the other halve are
2006 Sep 07
1
barplot: different colors for the bar and the strips
Hi,
I am using barplot and would like to know if it is possible to have bars
filled with one color while use a different color for the shading lines.
The following code colors the shading lines, leaving the bars in white:
barplot(1:5, col=c(1:5), density=c(1:5)*5)
while the colors are applied to the bars when density is removed.
barplot(1:5, col=c(1:5))
I did check ?barplot and found the
2018 May 21
3
draw borders of bars inside of the rectangles in a barplot
Dear R-users,
I want to draw a barplot with beside=TRUE.
One halve of the bars are drawn with a border, while the other halve are drawn without a border (i.e. filled bars vs. non-filled bars next to each other).
Because borders are drawn around the bars, doing this leads to one halve of the bars being wider than the other halve, expanding across the 0-point of the y-axis.
This problem emerges
2009 Sep 11
3
Barplot+Table
I am trying to automate a report that my company does every couple of years
for the state of Maine. In the past we have used SPSS to run the data and then
used complicated Excel template to make the tables/graphics which we then
imported into Word. Since there are 256 tables/graphics for this report, this
work flow is a little painful. I would like to automate the process and I think
I can do
2007 Mar 02
1
barplot with different color combination for each bar
Hi,
I'd like to construct a somewhat unusual barplot. In "barplot" I use
beside=F as I'd like to have stacked bars. The height of each bar is
always the same. Information in my plot is coded in the color of the
bar. I therefore need to be able so assign a different combination
(or order) of colors to each individual stacked bar.
In the example below, the combination of
2011 Jul 29
1
"inside" argument in barplot
Dear list,
I want to plot a sample depth curve over a barplot. It would be perfect if
the argument "inside" in the barplot function would be functional, cause I
could just add this curve to the actual barplot, but it seems like it is not
(not yet implemented). Argument "inside" would allow not to plot the line
dividing two bars and using a null color within these bars would
2009 May 27
3
Labeling barplot bars by multiple factors
I want to plot quantitative data as a function of three two-level factors.
How do I group the bars on a barplot by level through labeling and spacing?
Here <http://www.thomaslevine.org/sample_multiple-factor_barplot.png>'s what
I'm thinking of. Also, I'm pretty sure that I want a barplot, but there may
be something better.
Tom
[[alternative HTML version deleted]]
2008 Jan 24
2
Barplot w/ single stacked bar
Hi All,
I can get the barplot function to do many types of plots, stacked or
otherwise. However, I cannot get it to do a *single* stacked bar. I've
searched several books & listserv archives to no avail. I suspect I'm
missing the obvious from the help file!
I can reach my goal in ggplot2, although the relative heights of the
bar's pieces don't seem quite right (it does
2005 Dec 13
2
Labeling a range of bars in barplot?
Hi, I am plotting a distribution of (ordered) values as a barplot. I
would like to label groups of bars together to highlight aspects of the
distribution. The label for the group should be the range of values in
those bars.
As this is hard to describe, here is an example;
x <- rlnorm(50)*2
barplot(sort(x,decreasing=T))
y <- quantile(x, seq(0, 1, 0.2))
y
plot(diff(y))
That last
2009 Jun 02
5
how to add value on the bar ploted by barplot()
how to add value on the bar ploted by barplot()?
and the axis label is too big, anyone know how to change their font , thanks
--
Xiaogang Yang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University Vancouver
[[alternative HTML version deleted]]
2011 Jun 02
1
barplot - change width of bar outline
Dear R users
I am modifying a column chart which I have created in R using barplot to
make it clearer. I have been able to change the settings to increase the
width of the axes lines and the text size but I cannot find the code to
change the width of the lines which create the bars/columns themselves. Can
anyone point me in the right direction please?
Many thanks
Claire
--
View this message in
2011 Feb 19
1
barplot, different color for shading lines and bar
Dear all,
might there be a modified barplot function out there which allows the user
to specify a fill color for the bars and independent parameters for the
overlaid shading lines ?
Currently, when I specify density and col, the fill color for the bars is
white.
Thanks!
Markus
[[alternative HTML version deleted]]
2002 Nov 13
2
Putting value labels inside the bars of a bar plot
I'd like to label a bar plot with the actual value of each bar, inside the
bar. I see that there are ways to plot arbitrary text, so I could do it
'manually', but this seems common enough that there's probably a simple
solution. I don't see it in the high-level documentation for barplot, and
haven't found it anywhere yet. How might this be done?
Thanks,
Tom
2012 Mar 23
2
plot a BARPLOT with sd deviation bar up and down
dear Researchers,
i am looking for a function to plot a barplot for each mean value and the
related standard deviation, and i can close my week. This is an example of
my data set.
really Thanks in advance for any help or suggestions
Gianni
My.mean <- data.frame(Mean=c(0.4108926,0.3949009,0.4520346,
0.4091665,0.4664066,0.3048296,0.4297226,0.4056383,
2013 Feb 18
2
How to label percentage values inside stacked bar plot using R-base
Hello, I am new to R. I would like others to explain to me how to add
absolute values inside the individual stacked bars in a consistent way
using the basic R plotting function (R base). I tried to plot a stacked bar
graph using R base but the values appear in an inconsistent/illogical way
in such a way that its supposed to be 100% for each village but they don't
sum up to 100%.
Here is the
2006 May 26
1
R newbie attempting to plot data
Hi,
I just started using R and am having trouble with the below error:
I type:
> df <- read.csv("/home/rex/Desktop/mytable.csv")
which gives me what I want:
...
639 2006-05-26 16:46:54 4 16
640 2006-05-26 17:05:36 5 17
641 2006-05-26 17:30:48 6 17
But now I try:
> plot(df[4],df[3])
Error in pmatch(x, table, duplicates.ok) :
argument is not of