Displaying 20 results from an estimated 10000 matches similar to: "controlling plot spacing?"
2017 Dec 04
3
problem with the behaviour of dashed lines in R plots
dear R users,
I am performing a linear regression with lm, and I would like to plot
the regressor in dashed lines. I know that the lty=2 option is the way
out, but it has a very strange behaviour: the line starts dashed but
then the spaces between each dash becomes very tiny and so the line
become somehow continuous for the human eye. Do you know how to fix that
problem, in order to have a
2001 May 09
2
R help files -> S-Plus; par('mgp')
Thanks to Brian Ripley I have been using R utilities for
some time for converting S-Plus UNIX nroff help files
to .Rd to .html files. .Rd files seem to be the most
natural format for help files and this format is probably easier
to maintain than nroff, so I would like to start
using .Rd files as my master documentation format
if anyone has a utility for going from .Rd to nroff.
I guess I could
2000 Oct 17
1
filed plot symbols
This example,
x<-1:10
y1<-x
y2<-x+2
plot(x,y1,pch=21,ylim=range(c(y1,y2)),type="o",lty="solid",bg="white")
points(x,y2,pch=22,type="o",lty="dashed",bg="white")
legend(7,3,legend=c("y1","y2"),pch=c(21,22),lty=c("solid","dashed"),bg="white")
works if I use pch = one of 21-25. But
2017 Dec 04
1
problem with the behaviour of dashed lines in R plots
hi Sarah,
Thanks a lot for having taken time to answer me and for your reply. I
wonder how I missed this solution. Indeed plotting the line with the 2
extreme data points works perfectly.
Best,
Jean-Philippe Fontaine
On 04/12/2017 18:30, Sarah Goslee wrote:
> It's because you are plotting a line between each of the points in
> your data frame, and they are very close togethe
2012 Nov 12
8
no y-axis
HI @ all,
I'm looking for a simple solution to supress the y-axis - but only the drawn
scale - not the values.
Only the numbers should be displayed.
I tried yaxt="n" but there everything of the y-axis is supressed.
Thanks
GeO
--
View this message in context: http://r.789695.n4.nabble.com/no-y-axis-tp4649298.html
Sent from the R help mailing list archive at Nabble.com.
2000 Feb 15
1
par: mar and mgp dead?
I just installed 99.0a, and I can't set mar and mgp:
> par(mar(2,2,.1,.1))
Error in par(mar(2, 2, .1, .1)) : couldn't find function "mar"
I had the same happen with mgp.
Are these bugs or a problem in my installation (everything else seems
OK)?
Is R core going to kill mar and mgp? If so, how should I fix the
huge margins and huge space between axis title and axis? Try this
2008 Feb 15
3
lineplot.CI problem
Hi List,
I have a problem plotting data using the lineplot.CI command in the sciplot package.
I want to plot the data of 2 experimental cases using different lines (traces). Time is on the X-axis. The tricky thing is that the data collection in the second case started later than for the first case. This is to say: the first n data points for the second case are missing.
So far so good. However,
2007 Aug 08
2
Relocating Axis Label/Title --2
Apologies for the previous mail (I sent it off too early by mistake).
This is the correct example:
rm(list=ls())
D_mean<-seq(-5,5,length=100)
y<-exp(-D_mean^2/5)
pdf("my.pdf")
plot(D_mean,y,type="l",yaxt="n",lty=2,lwd=2,col="black",
ylab = list(expression(paste(dN/dlogD[agg]," ["*cm^-3*"]"))),
xlab = expression(paste(D[agg],"
2010 Feb 07
4
x-axis plot problem
Hi all,
I tried to have plot of many vector in one plot and i have got a nice plot
but i have problem with x-axis. I want to have month and year only(Jul.07
means July 2007) in x-axis without appearing other number behaind it.
I would appercit any help.
The R code:
F<-c(7.49,6.91,6.78,6.99,7.44,7.42)
M<-c(4.81,4.51,5.21,4.65,4.75,3.86)
P<-c(7.49,15.03,15.19,15.32,15.42,15.45)
2010 Sep 14
4
Problems with "pdf" device using "plot" "glht" function on "multcomp" library.
Hi R users:
I have de following data frame (called "Sx")
Descripcion Nitratos
Cont85g 72.40
Cont85g 100.50
Cont85g 138.30
Cont80g 178.33
Cont80g 79.01
Cont80g 74.16
Cont75g 23.70
Cont75g 15.80
Cont75g 16.20
Patron80g
2003 Apr 29
4
thick plot lines
Dear People,
In a qqplot I am doing, I get lines/points that are very thick. I've tried
setting the lwd variable to 0.1, but it doesn't seem to have any effect.
Also, I have set the value of lty to dashed, but I still get dots. The
command looks like
qqplot(cdf.inv(seq(0,1,length=size),theta,pos,len),empmargdistvec(len,theta,pos,size),
xlim=c(-theta,theta), ylim=c(-theta,theta),
2007 Oct 08
3
embedFonts rotates figure
Dear All,
Consider the following code:
pdf(file="figure.pdf",family="URWPalladio")
curve(dlnorm(x,0,1.5),0,10,xlim=c(0,10),ylim=c(0,0.85),axes=F,xlab="",ylab="f")
segments(exp(-1.5^2),0,exp(-1.5^2),dlnorm(exp(-1.5^2),0,1.5),lty="dashed")
segments(1,0,1,dlnorm(1,0,1.5),lty="dashed")
2010 Jun 11
2
Misplacement of Greek letter
Hello.
I am trying to get my axis label to read as follows
(The symbol) Delta AUC blah blah...
then below it...(some other text)
The problem is the Delta symbol shows up beside the "(some other text)"
rather than the "AUC". Does any one know how I can get the Delta to remain
beside AUC?
Here is the actual command should you care to look at it.
par(mar=c(8,8,4,4))
2001 Jun 14
1
Par and the size of the page
I've been trying, without much success, to change the properties of the
device on the Windows (1.3.0) version of R. What I'm trying to do is move
the plots further away from each other on the device (which will hopefully
translate to the same on the printout) and get the top plot closer to the
top and the bottom closer to the bottom.
I've sized the device to 8.5x11 using
2011 Jun 30
2
volcano plot.r
Hello.
My name is Akashah. i work at metabolic laboratory. From my study, i found that volcano plot can help a lot in my section.
i already studied about the volcano plot and get the coding to run in R software, unfortunately, there is may be something wrong with the coding. This is because no graph appear, but no error (blue color text) was shown on the R console. Below is the coding for
2011 Jun 20
2
(no subject)
HELLO, anybody... could you help me to check the below coding for volcano.
what is the mistake?
what the plot could not display?
# volcano_plot.r
#
# Author: Amsha Nahid, Jairus Bowne, Gerard Murray
# Purpose: Produces a volcano plot
#
# Input: Data matrix as specified in Data-matrix-format.pdf
# Output: Plots log2(fold change) vs log10(t-test P-value)
#
#
2010 Jul 07
4
Gray level mosaic plot with shading_Friendly
Suppose we start with
data("Titanic")
mosaic(Titanic, shade = TRUE)
How do I combine the dashed box contours of shading_Friendly to indicate negative residuals, with three levels of gray: dark for abs(Pearson Resid) > 4, lighter for 4 > abs(Pearson Resid) > 2, and lightest for bs(Pearson Resid) < 2 ?
Thanks,
Michael
______________________________________________
2000 Feb 14
3
More plotting comments
None of this is greatly important but might be a bit useful to someone.
BTW, I have 0.99a installed, it compiled without a problem.
I've discovered most of the plotting facilities including the legend()
function and the various text annotations, this is nice an convenient
and flexible enough to do most things. One thing that I must say is that
the help pages on plot() and plot.default()
2010 Oct 10
2
Line Type Specification: lty="<on><off>" but lty="<off><on>"?
Hi,
Section 'Line Type Specification' in help(par) explains how you can do
custom line types. For example:
plot(NA, xlim=c(0,1), ylim=c(0,1));
abline(h=1/2, col="blue", lwd=2, lty="88");
will draw a dashed line segment where the line is composed of 8 units
of "on" (blue color) and 8 units of "off" (transparent), then
repeated.
Now I'd like
2001 Jan 10
1
optmizing with monotone stepfunctions?
Before re-inventing the wheel I would like to ask: does anyone know about
an optimizer in R which can reliably identify which value of X (Xopt) leads
to Y (Yopt) closest to Ytarget in
Y <- MonotoneStepFun(X)
optionally with the restriction that Yopt <= Ytarget
(at least if any Y <= Ytarget, otherwise any Yopt > Ytarget would be the
preferred answer)
If none is known, I will write