Displaying 20 results from an estimated 10000 matches similar to: "Misunderstanding with lines (or elsewhere)"
2001 Jul 11
1
Extra lines when bty="n" (PR#1021)
Full_Name: Claus Ekstrøm
Version: 1.2.0
OS: Linux (RedHat 7.1)
Submission from: (NULL) (212.54.75.68)
For some reason two extra lines keep appearing
when making graphics with no box, bty="n" (a vertical line
along the leftmost side of the graphics region and a horizonal
line along the bottom side). The lines are very visible if the
plot is saved as a postscript file and is later
2010 Jan 29
1
How to draw a border for multiple graphs in one page
Hi,
I am struggling to create a 2 by 2 multiple graphs in one page. I used par(mfrow=c(2,2)) to divide the screen into 4. In each screen I draw a pie chart (They are all same).
For example, my data is like this
Concentration value
A1 69
A2 8
G1 51
G2 1
2012 Jan 01
1
bmp() shifts the image (Windows XP)
When using bmp() under Windows XP, I find that the saved image is a
shifted version of the correct image. Try this:
n<-5
fn<-"01.bmp"
x<-matrix(runif(n*n),nrow=n)
image(x,col=gray(0:255/255),axes=F,frame.plot=F)
bmp(filename = fn,width = n, height = n, units = "px")
par(mar=c(0,0,0,0),pty="s")
image(x,col=gray(0:255/255),axes=F,frame.plot=F)
dev.off()
The
2013 May 12
1
How to center a horizontal legend with specified 'text.width'
Hello dear list,
I just cannot figure out how to do this and didn't find a solution for my specific problem.
I want to place a centered horizontal legend between 4 plots. That's no problem.
The problem is: As soon as I specify the "text.width" parameter to separate the two legend entries, the legend is not centered anymore. I thought the 'xjust' parameter would do what
2006 Jan 24
1
Basic graphics question
I have a toy example given here:
par(fig=c(0,1,0,0.05))
par(mar=c(0,0,0,0))
par(plt=c(0,1,0,1))
par(oma=c(0,0,0,0))
par(ann=F)
plot(c(0,1),c(0,1),type='n',xlab='',ylab='',main='')
rect(0,0,1,1,col='gray75')
What parameter am I missing to make the gray rectangle use the entire figure
region? I am trying to build a plot from
2010 Nov 11
3
overlap histogram and density
Hi,
Does anybody encounter the same problem when we overlap histogram and density
that the density line seem to shift to the right a little bit?
If you do have the same problem, what should we do to correct that?
Thank you.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0))
hist(datobs,prob=TRUE, main ="Volume of a catchment from four
2008 Jun 30
2
Plotting question: Problem with strwidth in 2.7.1
R users,
I have a problem with function strwidth in 2.7.1. I'm trying to set
the plot margins in a way that horizontal
column labels will fit to the graph. tmp.t is a list of data.frame
objects. This code works well in 2.6.0.
...snip..
library(gplots)
for (i in names(tmp.t)) {
bmp(filename=paste(i, "_", Sys.Date(), ".bmp", sep=""),
width=1038,
2010 Nov 25
1
overlap cdf plots and add colors and etc
Hi r-users,
I would like to overlap 2 ecdf plots.
I tried this below and it gives me two plots of ecdf but just both just in
black.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
plot(ecdf(datobs))
lines(ecdf(gam_sum_gen))
Then I try to add colors etc and also the legend but fail.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
2006 May 13
2
windows( ... ,rescale="fixed") bug (PR#8857)
Full_Name: Gerhard Thallinger
Version: 2.3.0; 2.2.0
OS: Windows XP
Submission from: (NULL) (212.183.54.87)
Invoking windows() with the parameter rescale="fixed" followed by plot.new()
or any other plot command causes very often the following error:
windows(width=7, height=7, rescale="fixed");plot.new()
Error in plot.new() : outer margins too large (fig.region too small)
2010 Feb 19
1
"Legend" question
Hi,
I want to get a histogram with the legend for my data. I drew a normal density curve and kernel density curve in the histogram, and I also label mean and median in the X axis. From the code, I got two legend: One shows "Normal Density" and "Kernel Density" and their corresponding lines, the other shows "Mean = value" and "Median = value" and their
2002 Jul 05
1
PDF file not created correctly
I am trying to put some text data in a graphical output file so that I have
a single file with both the graphs and summary data. I was capturing the
output via a 'sink(textConnection('output','w')). This seems to work fine,
but in trying to put the text data in a graphics frame, I was having
problems. When creating a postscript file, things were fine, but a PDF
file appeared
2012 Sep 14
1
Printing localized pdf file from Sweave snippets
Hello!
I am struggling for quite some time with proper printing of local
characters in pdf plot, via Sweave snippets in Rnw file.
When I am working directly within R, all is fine and I can get local
character properly, like:
pdf('figs/fig-relativeEntropy0.pdf', h=6, w=6, encoding='CP1250')
matplot(par[, c(3)], type='b', ylim=c(0,0.5), xaxt='n', pch=c(21),
2007 Mar 18
2
italics letter in roman string
Hi,
As part of the legend to a plot, I need to have the "n" in italics
because it is a requirement of the journal I aim to publish in:
"This study, n = 3293"
Presently I have:
legend(20, 105, "This study, n = 3293", pch=1, col=rgb(0,0,0,0.5),
pt.cex=0.3, cex=0.8, bty="n")
I suppose I could leave a blank in place of the "n",
2009 Jan 28
2
Text data
i have a data column of text entries:
26M_AN_C.bmp
22M_AN_C.bmp
20M_HA_O.bmp
20M_AN_C.bmp
26M_HA_O.bmp
22M_HA_O.bmp
31M_AN_C.bmp
38M_HA_O.bmp
.
.
.
.
And I would like to sort by the middle tag: AN, HA, etc.
Is there a way to parse text data in R?
In excel, I would have used the "left" and "right" function to cut out just
the middle two letters out and put into another
2006 Dec 08
2
trouble with cloud output to bmp when in loop
I have some data that I need to view in various 3-D clouds. To better see
the cloud structure on a 2-D screen I would like to output a bunch of bmp
files with clouds at slightly different angles, then run them through an
external program to animate them. But I'm having trouble getting cloud()
from the lattice package to output to bmp files. Oddly, this is only a
problem when outputting
2004 Dec 30
2
coplot with png: disappearing grid lines
Dear useRs,
When I use coplot() and output to png/jpeg/bmp, the grid lines from
the scatter plots disappear. If I output to pdf() the grid lines are
there, however I can't use it - I have many points, and the resulting
PDF file is large and very slow to open and scroll through. (By the
way, if I click File-Save As-png/jpeg/bmp from Rgui.exe, the grid
lines are preserved - but I need to use
2002 Jan 29
3
lattice dotplot and graphic devices on Windows
I am using R1.4.0 on WindowsNT (the precompiled version from Brian Ripley's
website) and the lattice package (version details are at the end of this
message).
After producing a lattice dotplot, I want to insert the graph into a
MicrosoftWord document. With "ordinary" R-graphics, I have done this
successfully by copying the graph as a metafile to the clipboard and pasting
this into my
2004 Aug 26
1
"o" bty with different axes
Is it possible to create plot bty=o with different scale of left- and
right x-axis? In my documents, by typesetting, bty=u looks disruptively.
At 2nd: how to frame the whole box (including title and axes labels) and
resize to landscape-oriented rectangle?
Tomas Bayer
2008 Sep 08
1
Beginner graphics device questions.
Please forgive me if this has been asked before but I could not readily find an answer. First, from the example I was able to determine that graphics device commands such as plot can be redirected using 'png' and 'bmp' type commands. I tried this and it works as I understand it. The question is how this graphics device works. If I issue another 'plot' command will it also
2018 Jan 05
1
stat(2) cache, samba3 versus samba4
Short version:
Is there a way to enforce use of this cache:
./source3/smbd/statcache.c
I noticed it is absent from the ./source4 directory
I limited
server max protocol = SMB2
but that didn't do it.
Long story:
-----------
My samba server (4.2.14) hosts a couple of game install trees for a
Windows 7 computer.
Some of the games cause storms of stat(2) system calls, here is a
partial