[R] Inspecting C code in an R package

2011-06-11 Thread Layman123
Hello everyone,

Trying to comprehend code of an R package, I encountered the problem that
the interesting part of the
function I'm inspecting is written in C-Code and called by .C(somename,
). Now I can't inspect the C-Code the function is calling since I can't
find it in the folder of the package.
Does someone know, where the corresponding C-Code ist stored, so I could
inspect it and comprehend what is happening?

Thank you very much in advance!

Regards
Roman

--
View this message in context: 
http://r.789695.n4.nabble.com/Inspecting-C-code-in-an-R-package-tp3590596p3590596.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Inspecting C code in an R package

2011-06-11 Thread Layman123
Thank you Sarah for your quick answer! I've just downloaded the source
package, but now I don't know in which file the C-Code is stored
.C(somename,) is calling - there is no file with the name
somename. How could one figure that out?

--
View this message in context: 
http://r.789695.n4.nabble.com/Inspecting-C-code-in-an-R-package-tp3590596p3590641.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Inspecting C code in an R package

2011-06-11 Thread Layman123
Thank you! Of course, I will read the posting guidelines. A subscriber helped
me via e-mail telling me to use the grep-command, that is type in: grep
somename *.c. For Windows users it's: findstr somename *.c.

--
View this message in context: 
http://r.789695.n4.nabble.com/Inspecting-C-code-in-an-R-package-tp3590596p3590744.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Shrink file size of pdf graphics

2011-05-22 Thread Layman123
Thank you very much for the tip! Using imagemagick i got an image of reasonable 
quality without making the file size that large. Regards Roman Von: 
quot;Philipp Pagel-5 [via R]quot; 
lt;ml-node+3537871-1637924423-125...@n4.nabble.comgt; Gesendet: 20.05.2011 
09:50:42 An: Layman123 lt;romanhorn...@web.degt; Betreff: Re: Shrink file 
size of pdf graphics On Thu, May 19, 2011 at 01:35:51PM -0700, Layman123 wrote: 
gt; I tried both, the plot devices in R and pdftk. First I tried the 
png-device, gt; but as I wanted to increase the number of pixels with 'width' 
and 'height', gt; the labels are getting smaller When I really need a png, I 
usually produce a pdf or eps first and then convert to png of the desired 
resolution with the convert command of imagemagick (but of course any other 
software, like e.g. Photoshop, should work fine, too). That way I don't have to 
figure out the correct paramters to make the png the way I want it and I have 
the additional benetfit of a vector g!
 rpahics quot;master filequot; that I can esily use to produce addictional 
verison in differnent resolutions etc. gt; Is there a way to do this with the 
gs-command so that it would be even more gt; compressed? Possibly, but of 
course there is a limit to how much you can compress a file without resorting 
to lossy compression. You may have hit that limit. cu nbsp; nbsp; nbsp; 
nbsp; Philipp -- Dr. Philipp Pagel Lehrstuhl fuuml;r Genomorientierte 
Bioinformatik Technische Universitauml;t Muuml;nchen Wissenschaftszentrum 
Weihenstephan Maximus-von-Imhof-Forum 3 85354 Freising, Germany 
http://webclu.bio.wzw.tum.de/~pagel/ 
__ [hidden email]  mailing list 
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html and provide commented, minimal, 
self-contained, reproducible code. If you reply to this email, your message 
will be added to the discussion below: http://r.78!
 9695.n4.nabble.com/Shrink-file-size-of-pdf-graphics-tp3536042p3537871.
html To unsubscribe from Shrink file size of pdf graphics, click here . 


--
View this message in context: 
http://r.789695.n4.nabble.com/Shrink-file-size-of-pdf-graphics-tp3536042p3542242.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Shrink file size of pdf graphics

2011-05-19 Thread Layman123
Hi everyone,

My data consists of a system of nearly 75000 roads, available as a
shapefile. When I plot the road system, by adding the individual roads with
'lines' and store it as a pdf-file with 'pdf' I get a file of size 13 MB.
This is way too large to add it in my LaTeX-document, because there will be
some more graphics of this type.
Now I'm curious to learn wheter there is a possibility in R to shrink the
file size of this graphic? I merely need it in a resolution so that it looks
smooth when printed out. I don't know much about the storage of R
graphics, but maybe there is a way to change the way the file is stored
perhaps as a pixel image?

Thank you very much in advance! Any tips are appreciated much!

Regards
Roman

--
View this message in context: 
http://r.789695.n4.nabble.com/Shrink-file-size-of-pdf-graphics-tp3536042p3536042.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Shrink file size of pdf graphics

2011-05-19 Thread Layman123
Thank you all for the quick answers!

I googled first instead of having the idea to search this forum...
I'm using R 2.12.2 on a 32-bit Computer with windows installed.

Up to this point I was trying to get the image the way I would like to have
it, but didn't get fully satisfactory results.
I tried both, the plot devices in R and pdftk. First I tried the png-device,
but as I wanted to increase the number of pixels with 'width' and 'height',
the labels are getting smaller. Yet attempting to prohibit this manually
with 'cex' doesn't give satifactory results. Searching the list I read about
the package 'cairoDevice' that would prevent this, increasing only the
resolution of the image and changing nothing about the size of the objects
in the plot. After I managed to install it, I got an error trying to open a
'Cairo'-device. I probably missed to install something. The CRAN-page
doesn't state anything on how to do this. Is there a way in R to produce
images with high resolution?

Using pdftk I managed to compress the file size from 13 MB to 3,6 MB. This
is really a good compression. However I would need an even smaller file
size. Unfortunately I saw your post very late, Aaron. With this command, a
pdf of size 3,4 MB was produced. pdftk doesn't seem to offer any options to
take influence on how much the pdf is compressed. 
Is there a way to do this with the gs-command so that it would be even more
compressed?

--
View this message in context: 
http://r.789695.n4.nabble.com/Shrink-file-size-of-pdf-graphics-tp3536042p3536850.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] fit a marked poisson process using a quadrature scheme with 'spatstat'

2011-04-28 Thread Layman123
Hello everyone,

My data consists of marked points and several covariates, whereby the marks
are the time points of the observations. The problem is, that one of the
covariates is hard to handle as an image. This covariate represents the type
of roads. As there aren't roads at every location of the map, one cannot
specify the value of the covariate at any point on a grid, which is
necessary to specify an image. To tackle this, I wanted to use a quadrature
scheme and use points on the roads as dummy points instead of a data point
pattern as the outcome variable. The problem I now encounter is, that I
can't give marks to the dummy points, since they are no real observations
(and omitting the marks gives an error).
Does somebody know, what to do in such a situation?

Thank you very much in advance! Any tips are appreciated much!

Regards
Roman

--
View this message in context: 
http://r.789695.n4.nabble.com/fit-a-marked-poisson-process-using-a-quadrature-scheme-with-spatstat-tp3481480p3481480.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.