Displaying 20 results from an estimated 10000 matches similar to: "R help"
2005 Oct 28
2
line vector plots
Hi,
I'm looking for the way to make vector plot over a time line. This plot,
similar to the "feather plot" in Matlab, is a line in which every thick
(a time value) one vector is drawn with its length proportional to one
variable (wind speed, for example) and its direction to another (wind
direction, for example). Any ideas?
Thanks, EKS
--
----------------------------
Eduardo
2001 Nov 08
2
Error Bars
I'm trying to draw some error bars on a bar chart. I'm using code like
this:
thing <- c(3,3,3)
se <- c(1,1,1)
names(thing) <- c("A", "B", "C")
barplot(thing, ylim=c(0,4))
arrows(c(1:3), thing-se, c(1:3), thing+se, code=3, angle=90,length=0.1)
Using c(1:3) has 2 problems:
1. Obviously it is untidy, but using names(thing) doesn't work, and I
2010 Sep 15
2
Using feather.plot to try and generate a stick plot of current velocity data (and having issues)
Hello All,
I am attempting to use the feather.plot function from the plotrix
package to graph current velocity data as I have speed and direction. I
let "r" be the first 10 rows of current speed data and "theta" be the
first 10 rows of directional data in radians. I had tried this with 10
measurements, but keep getting the following error message:
>
2013 Jan 14
1
Plotting two graphs on the same figure
I want to add a line that represents the relationship between x and y to a strip chart, I've tried the following functions:
par(new=TRUE)
points(x,y)
lines(x,y)
but nothing works, I get the strip chart but line doesn't show up. Here is my function:
stripchart(hydfin$exp ~ hydfin$alt, vert = TRUE, pch = 1, method = "jitter", jit = 0.05, xlab = "Elevation", ylab =
2007 Jul 25
3
Constructing bar charts with standard error bars
I am new to R.
I want to graph group data using a "Traditional Bar Chart with Standard
Error Bar", like the kind shown here:
http://samiam.colorado.edu/~mcclella/ftep/twoGroups/twoGroupGraphs.html
Is there a simple way to do this?
So far, I have only figured out how to plot the bars using barplot.
testdata <- scan(, list(group=0,xbar=0,se=0))
400 0.36038 0.02154
200 0.35927
2009 Dec 03
5
Bar Plots: Error Bars
Hey Everyone,
I'm pretty new at R and wanted to try and make some graphs with dummy data
before using it to analyze my own. I successfully made a bar graph and error
bars, but I can't figure out how to align them properly (currently they are
not centered on the bars and some of them aren't even close). Here's the
code that I'm using:
> marks <- sample(4:10, size=50,
2008 Mar 13
1
how to generate bar charts with the standard deviation
Hi,
I have the two vectors mean and sd of individual columns, but I am unsure
how to generate bar charts with the standard deviation, even after looking
the help of barplot and barplot.2.
[[alternative HTML version deleted]]
2008 Jul 09
1
outlining symbol in legend with blackline
# I would like to outline the squares in the legend with a black line. Does
anyone know how to do this?
x.t <- structure(c(5987.387, 4354.516, 3685.789, 6478.592, 5924.315,
NA, 8386, 5559.468, NA, 4651.273, 3967.5, NA, 4339.167, 5053.56,
NA, 4631.978, 4808.694, NA, 5217.306, 4017.632, NA, 5846.903,
3969.883, NA, 3867.825, 3910.236, NA, 3886.434, 3782.094, NA,
3959.668, 3961.286, NA, 3848.853,
2011 Mar 27
2
overlaying
Dear List,
I am working with a small (3 columns and 9 rows) data table, which contains
9 observations, their mean values and standard deviations (I extracted these
data from a huge set and I cannot use the original data). I plotted means
(y-axis) and the observations (x-axis) using the " plot() " command.
However, I am not sure how to plot the standard deviation data on top of
this. This
2010 Apr 02
2
angles
Hi R users,
I would like to construct a sort hybrid vector/scatter plot.
My data is in the following format: 3-column x,y,z data-frame in which
every row is a separate data-point.
The x & y columns are coordinates, and the z column contains orientation
data (range 0-180 degrees, with East=0 & North=90).
I need to set each x,y, point to have the alignment in z. Hence my
2010 Dec 18
1
Can I make my colnames bold?
Hello forum! As the subject indicates, I am trying to make a barplot and
would like my column names to be in bold. Is this possible in R without
having to make my column names in mtext? Any help would be much
appreciated. The code I am using is as follows.
par(mar=c(3,8,2,2))
par(adj=.5)
par(font=2)
par(oma=c(3,3,3,3))
par(xpd=TRUE)
Blot<-matrix(c(25.2995, 0.7625, 25.6135, 36.5770,
2009 Jan 19
2
plotting arrows with different colors and varying head size
Dear list,
I would like to plot arrows with different colors according to arrow length, and also (if
possible) with head size proportional to arrow length. The idea is to make a quiver-like plot of
matlab with wind speed data.
So far, I´ve been able to use different colors, but I need to find a more efficient way to recode
arrow length intervals into colors. On the contrary, I can't define
2016 Apr 12
2
Adding Two-Headed Arrow in map legend
Hello Jim,
Thanks again. I am getting the two-headed arrow but I cannot seem to get
the coordinates right for the arrow to appear beneath the map. These
coordinates puts the arrow on the left hand side. Thanks again!
Sincerely,
Milu
On Tue, Apr 12, 2016 at 1:15 PM, Jim Lemon <drjimlemon at gmail.com> wrote:
> Hi Milu,
> There is a two-headed arrow on the image you sent, and it
2016 Apr 13
0
Adding Two-Headed Arrow in map legend
Hi Milu,
My fault here. As I don't have the data to make the map and try out my
suggestions I mixed up the x and y coordinates. Try this:
par(xpd=TRUE)
arrows(-19.75966,53,33.60000,53,code=3)
par(xpd=FALSE)
Jim
On Tue, Apr 12, 2016 at 10:11 PM, Miluji Sb <milujisb at gmail.com> wrote:
> Hello Jim,
>
> Thanks again. I am getting the two-headed arrow but I cannot seem to get
2011 Dec 07
2
How to scale arrows to approximately fill a plot region?
In a variety of graphic applications, I plot some data, together with
arrows representing variables
or linear transformations of variables as vectors in the same space, as
in a biplot.
In my applications, the scale of the arrows is arbitrary -- all that
matters is relative length.
I'd like to blow them up or shrink them to fit the available space in
the plot.
The origin is typically at
2016 Apr 12
2
Adding Two-Headed Arrow in map legend
Dear Jim,
Thanks again! I do want the arrows at the bottom (beneath the map). This is
what I am doing:
# Draw the map
eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
Score - Europe",colourPalette=colourPalette,
catMethod="fixedWidth", missingCountryCol = "white", mapRegion="Europe",
addLegend=FALSE)
# ISO3 codes on
2016 Apr 12
0
Adding Two-Headed Arrow in map legend
Hi Milu,
There is a two-headed arrow on the image you sent, and it seems to be
where you specified. Did you want it beneath the map, as:
par(xpd=TRUE)
arrows(-22,54.75,-22,74,code=3)
par(xpd=FALSE)
Jim
On Tue, Apr 12, 2016 at 7:58 PM, Miluji Sb <milujisb at gmail.com> wrote:
> Dear Jim,
>
> Thanks again! I do want the arrows at the bottom (beneath the map). This is
> what I am
2012 Feb 10
4
function arrows.circular not working
I have started using the circular package but it is not recognizing the function arrows.circular. I attempted to use the example provided in the circular manual. Here is the example code using the circular package:
plot(rvonmises(10, circular(0), kappa=1))
arrows.circular(rvonmises(10, circular(0), kappa=1))
arrows.circular(rvonmises(10, circular(0), kappa=1), y=runif(10), col=2)
2006 Oct 20
1
arrows and points for error bars
Hello everyone,
I have successfully made an error bar graph using the points() command
with the arrows() command to maually add on the standard errors.
However, one slightly annoying feature of using this method is that the
points dont line up exactly with the arrows (if you look carefully the
points are never perfectly in the centre of the arrow), even when you move
the arrows around in an
2009 May 15
3
drawing arrows
Hi,
I would like to draw arrows in a classic 2D plot. Which package should I
use? is there R base functions that do job?
On google, I could not find any useful discussion about this topic, except a
link to the function 'grid.arrows' of the grid package.
My problem is I would like to draw arrows at the edge of circles drawn by
the 'symbols' function. Maybe there is already a