Displaying 20 results from an estimated 2000 matches similar to: "problems with R graph."
2012 Mar 14
3
Export a plot/figure to excel or word?
Hi all,
I have created forest plots using the package "meta" that I submitted as pdf for publication. I just received an email from the editor asking me if I could send these files in an Excel or MS Word format such that they can treat them as tables with box plots.
I am not sure if I can do this... Is this possible? I've tried the capture.output command, but I get a blank MS Word
2009 Feb 05
2
R command system under Windows
Hi,
I am trying to use the R command "system" under windows (XP). If I try the simple command system("mkdir toto") to create a directory toto, it tells me that it cannot find the command mkdir...
Does anybody knows how it works ? Is it a path problem ? Maybe the answer is simple: I am a R user under Unix/Linux and I don't know well R under windows.
Thanks !
Aurelie
2011 Nov 01
2
Removal/selecting specific rows in a dataframe conditional on 2 columns
Dear list,
After reading different mails, blogs, and tried a few different codes without any success, I am asking your help!
I have the following data frame where each row represent a survey unit with the following variables:
> names(RV09)
[1] "record.t" "trip" "set" "month" "stratum" "NAFO"
[7]
2009 Feb 05
2
R system command on windows
Hi,
I am trying to use the R command "system" under windows (XP). If I try the simple command system("mkdir toto") to create a directory toto, it tells me that it cannot find the command mkdir...
Does anybody knows how it works ? Is it a path problem ? Maybe the answer is simple: I am a R user under Unix/Linux and I don't know well R under windows.
Thanks !
Aurelie
2011 Nov 06
1
Combining some duplicated rows & summing one of their column
Dear list,
I have this dataframe:
> names(events)
[1] "EID" "X" "Y" "trip" "tow" "catch" "effort" "depth"
[9] "season"
Where some of my unique ID "EID" appears more than once in 162 cases.
> length(events$EID)-length(unique(events$EID))
[1] 162
I would like to combined
2011 Dec 04
1
Polishing my geom_bar for publication
Dear list,
I am new with ggplot2 and I have spend quiet some time putting together the following code to create the attached plot. However there's still a few things that I'm having trouble with!
I would be grateful if someone can tell me how to fix (1) the colour of my bars into grey scales (2) removing the y-axis (species name) on the right figure to avoid duplication, and (3) fix the
2012 Mar 26
1
Error in par(pin = p) : invalid value
Dear list,
I am getting an error message with "pin" and I am not quiet sure how to fix it.
library(maps)
op<-par(mar=c(1,1,1,1))
map(xlim=c(-40,-45),ylim=c(60,65), boundary=T, fill=T, col='gray95')
>Error in par(pin = p) :
invalid value specified for graphical parameter "pin"
par("pin")
> par("pin")
[1] 8.188889 8.188889
I saved an
2011 Nov 06
1
Deleting rows dataframe in R conditional to “if any of (a specific variable) is equal to”
Dear list,
I have been struggling for some time now with this code... I have this vector of unique ID "EID" of length 821 extracted from one of my dataframe (skate). It looks like this:
> head(skate$EID)
[1] "896-19" "895-8" "899-1" "899-5" "899-8" "895-7"
I would like to remove the complete rows in another dataframe
2012 Mar 09
2
Create a list object in a loop
Dear all,
I'm trying to create a list of point patterns ppp.object {spatstat} in a loop.
My dataset looks like this:
> names(OT1);head(OT1);dim(OT1)
[1] "EID" "latitude" "longitude" "month" "year" "CPUE" "TSUM"
[8] "fTSUM"
EID latitude longitude
2001 Oct 01
3
save plot graph
Dear all,
I have a lot plot graphs and i would like to save them.
One solution is to use the grab function with xv.
But it is tedious....
So is there a R function that can save automatically
the result of a plot in a gif or ps or bmp file
Thanks
Olivier
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN phone: (33) 04 76 61 53 55
Projet IS2
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
2010 Sep 03
3
define colors for groups in lattice xyplot
Dear all,
Lattice provides automatic coloring for subgroups on each panel by the
simple use of a groups statement. For an application I want to change
these colors to a predifined set. This works well using a panel function
in stead of the default as long as there are only points in the graphs.
When I set type="b" things get messed up. Any idea why? I include sample
code for
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
2006 Sep 14
2
Patch to fix ArtProvider and ArtProvider sample
These patches better implement ArtProvider and add the demo for it. I
also expanded the bigdemo window a little bit. I really think we should
go larger but I suppose there might be some people at 800x600 still.
Note that creating your own art provider still doesn''t quite work
correctly. I didn''t have time to get into that.
The RubyConstants.i.patch file looks weird. Not
2004 May 27
2
no transparent background in bmp
I've been attempting to export a graphics file of my lattice plots and no
matter what color I use for the bg= argument in the bmp/jpeg/png function,
the background is grey.
bmp(filename = "c:/my_paper/resids.bmp", width=1024, height=1024,
pointsize=10, bg="transparent")
# these are lattice plots. plot them in a 3x2 matrix
print( hgqqplot, position=c(0.0, 0.66, 0.5, 1.0 ),
2012 May 08
2
PPM to BMP converter
Dear all,
Several days ago, I posted How to write a bmp file pixel by pixel. Instead of bmp, I succeeded in writing a PPM file by using the pixmap package. Thanks for the hint generously provided by Uwe Ligges.
Now I have a new question. How to convert a PPM file to BMP file in R? I know I can do this in photoshop or by some other softwares, but I think if I Can do this in R, that
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
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
2004 May 18
3
Help : trellis.device
Hi, R members.
I want to save plots. So I use the R as fallows :
--------------------------------
a <- c(1,10)
b <- c(1,10)
c <- c(2,20)
d <- c(2,20)
require(lattice)
trellis.device("bmp", file = "test.bmp", bg = "white")
print(plot(a,b))
print(plot(c,d))
dev.off()
--------------------------------
However, I got a image of plot(c,d).
I want to get a
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