Displaying 20 results from an estimated 900 matches similar to: "labels gone"
2012 Jul 26
3
Remove rows that have repeated items in a particular column
Dear R Users,
I apology for not being able to provide an adequately informative subject.
Let me describe my problem with an example.
For a matrix
* (mat <- matrix(c(1,1,2,2,2,3,3, 5,9,1,3,7,4,8), ncol = 2))*
my desired output is
* (desired <- matrix(c(1,2,3, 5,1,4), ncol = 2))*
That is, the first column is numerically grouped and only the first item in
each group is wanted. The
2010 Sep 29
1
sample exponential r.v. by MCMC
Dear R users,
I am leaning MCMC sampling, and have a problem while trying to sample
exponential r.v.'s via the following code:
samp <- MCMCmetrop1R(dexp, theta.init=1, rate=2,
mcmc=5000, burnin=500,
thin=10, verbose=500, logfun=FALSE)
I tried other distribtions such as Normal, Gamma with shape>1, it works
perfectly fine. Can someon
2011 Jul 28
1
color of math annotation in legend
Dear useRs,
Can someone help me to adjust the color of math annotation in a legend? The
following code gives me a black "alpha = 2".
x=y=1:100
z=seq(0.5,50,by=0.5)
plot(x,y,type='l',col='black')
lines(x,z,col='red')
legend('topleft',c(expression(paste(alpha," = ", 1)),
expression(paste(alpha," = ",
2012 Jan 09
1
par.plot() for repeated measurements
Hello,
I am using the package gamlss in R to plot repeated measurements. The
command I am using is par.plot(). It works great except one thing about the
label of the axises. I tried to label both x and y axises using ylab and
xlab options. But the plot only gives variable variables. The labels did not
show up. Below is the code I used. Any comments are appreciated! Thanks.
library(gamlss)
2003 Nov 07
3
Two Y-axises and One X-axis
Hi,
I would like to know if anyone knows how to draw a plot with two Y-axises and
one X-axis? When you have two sets of y values that do not have the same
scale, but correspond to the same x value, I would like to plot them on one
graph.
Could you please help me?
Thank you
Soyoko
2008 Jan 25
3
One application that I would like to see work.
http://www.chproducts.com/retail/tech_control_manager.html
The above is the last road block for me, into round filing my Win2k
partition.
Unfortunately, the way the joystick system works in Linux, I don't think
this is even a possibility.
I need the above applications ability to map joystick switches to
keystrokes and the ability to combine axises with mathematical functions.
2005 Jan 26
3
plot function
Hello,
how can use change the plot function to change the range of axises. I want my graph from a certain range [a, b], instead of from the min to max of of datas?
if i want draw a line instead of dots, should i use both plot and lines function.
for example:
plot(x, y);
lines(x, y);
things seem not working if i only use lines(x, y).
Thank you so much.
Cuichang Zhao
Jan 25, 2005
2008 Jan 29
3
How to get two y-axises in a bar plot?
Hi,
I have measured two response variables (y1, y2) at each treatment level
(x = 0, 1.5 or 3). Now I would like to show the y1 and y2 against x in a
bar plot. However, y1 and y2 differ in scale so I need two y-axises, one
on the left side and one on the right side (and I dont want to
standardize my responses). This is fairly easy if you want to show
points,lines etc, but gets more complicated
2007 Apr 04
5
how to image.plot a XY grid file into a lat-lon map
Hi All,
I have a netcdf gridded file with LCC projection. I can easily use
image.plot to visualize it. However, as the axises are in X,Y, not Lat and
Lon, I could not add state or country maps onto it (or lat lon information).
I do have a grid2d file that describes the lat and lon for each (X,Y) grid,
but the lat and lon are not regularly spaced, so I could not use image.plot.
Does anyone know
2011 Apr 23
3
Problem having tick marks aligned when plotting three graphs on top of one another.
R 2.10
Windows 7
I am trying to plot three graphs on top of each other. I need to have the axises perfectly aligned. For some reason the ticks on the y axes are slightly off so they do not perfectly align. Can someone tell me how I can get the to overlay each other perfectly? I thought the yaxp parameter would solve my problem, but it does not. My data and code follows:
>
2008 Jun 11
1
specifying ranges in scatter plot
Hi, there:
Does anyone know how to specify the ranges in the axises when I make
scatter plots using pairs()? In the general plot function, I can use
xlim and ylim option. But how can I do this if I use pairs()?
Thanks.
Yulei
[[alternative HTML version deleted]]
2007 Jun 22
1
Switching X-axis and Y-axis for histogram
Dear all,
I'm creating a histogram with the function hist(). But
right now what I get is column representation (as normal).
I'm wondering if I could switch X-axis and Y-axis and
get row-representation of frequencies?
One more question, can I define the step of each axises
for the histogram?
Thanks so much!
Donghui
2007 Apr 06
2
How to set the scale of axis?
Hello,everyone.
I want to know how to control the scale of axises.
For example, the range of x axis is (1,100),and I want to show the scale in
the axis as this:
1 20 40 60 80 100.
Is there any parameters in plot() or other functions to set the scale?
Thands!
[[alternative HTML version deleted]]
2006 Feb 13
1
Adding dimnames to image()
Dear Colleagues,
does anybody know how to add dimnames to an image. Right now I'm using
image(as.matrix(df3), col=brewer.pal(9,"Blues"))
where df3 is a data.frame.
dimnames(as.matrix(df3)) delivers
[[1]]
[1] "RFM_A1" "RFM_A2" "RFM_A4" "RFM_A5" "RFM_A7" "RFM_B3" "RFM_B6" "RFM_B7"
2006 Sep 06
3
plot axises on both sides of a graph
Usually the y-axis is shown on the left-hand-side of a graph, is it possible
to artifically creat one more y-axis on the right-hand-side in R? What is
the main reference? Thank you in advance.
[[alternative HTML version deleted]]
2009 Jul 02
2
Need to study and learn about better plots
Hi,
So far my plotting needs have been sort of ignored as I got
acquainted with R this week, but now that I have the basics in place
for the program I wanted to write it's time for me to start learning
about how to make output that better suits my needs. I think I have
two sort of charts I need to concentrate on learning how to produce:
1) Probably a trivial request - a single chart that
2010 Feb 09
0
append something to an xls file
Hi everyone,
I run into this problem and hope somebody can help. Thank you in advance.
I have an excel file with the first column being a list of names.
What I want is to add values that I compute for each person to the right of
the corresponding names.
Can someone help me with this? Thanks.
Best,
Zhongyi
[[alternative HTML version deleted]]
2007 Jun 21
0
questions for hist()
Dear all,
I'm creating a histogram with the function hist(). But
right now what I get is column representation (as normal).
I'm wondering if I could switch X-axis and Y-axis and
get row-representation of frequencies?
One more question, can I define the step of each axises
for the histogram?
Thanks so much!
Donghui
2011 May 26
2
3 Y axis possible?
Dear list,
We have three time course profiles with very different scales, and we want
to show them in one plot. Is it possible to have three y axis? I guess not,
then what would be other options? something like two 2-y axis plots on a
three dimensional view? Appreciate any comment.
Jun Shen
[[alternative HTML version deleted]]
2009 Jul 02
2
Plot two graphs with different ranges in one
Hi, I'm trying to plot two variables in one graph. One ranges between 0 and
1, while the other ranges between 50 and 500. Can I plot them in one graph
with similar scale?
Thanks
Harry
[[alternative HTML version deleted]]