par

Perl Install PAR:Packer Problems

对着背影说爱祢 提交于 2019-11-29 14:45:32
问题 My perl version is 5.16.2 on my Windows 7 64bit, I failed to install PAR:Packer. I tried active perl and strawberry perl , both got the same error. Can you please give me some suggestion. Below is my experience: I tried ppm install PAR:Packer , version 1.013, But when I use pp, I got the error: Perl lib version (5.16.2) doesn't match executable version (v5.16.0). I also tried cpan install PAR:Packer , version 1.014. But I got the error during installation. The pop up window says: par.exe has

How to install pp (PAR Packager)?

会有一股神秘感。 提交于 2019-11-29 04:35:32
I have to create an exe from a Perl script. I installed ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi How do I install pp ? Until the issue with 1.010 is fixed, do the following: Go to http://search.cpan.org/dist/PAR-Packer/ From the "Other releases" drop down list, select PAR-Packer-1.009 and download it Decompress the archive, preserving directory structure Run perl Makefile.PL Install all the missing prerequisites by hand using ppm . E.g., ppm install Module::ScanDeps etc Install MingW: ppm install MingW dmake , then dmake test , then dmake install Later, you can remove PAR::Packer from the

Reset par to the default values at startup

核能气质少年 提交于 2019-11-28 03:14:49
Normally when I make my own plot functions, I make a construct : op <- par("mypar"=myvalue) on.exit(par(op)) which is the standard way of reverting the par to the previous values. Imagine you've been running some functions that did change some of the pars, and you need to reset to the default values at startup in R. What is the convenient way of doing so? Or in other words : how does one reaches the default values for par() ? Every time a new device is opened par() will reset, so another option is simply do dev.off() and continue. This is hacky, but: resetPar <- function() { dev.new() op <-

Combined plot of ggplot2 (Not in a single Plot), using par() or layout() function? [duplicate]

Deadly 提交于 2019-11-27 06:28:01
This question already has an answer here: Creating arbitrary panes in ggplot2 5 answers I've been thinking of using par() or layout() functions for combining ggplots. Will it be possible to use those functions? Say I want to plot ggplot for scatterplot and ggplot for histogram. And I want to combine the two plots (NOT IN A SINGLE PLOT). Is it applicable? I tried it with simple plotting in R, without using the ggplot functions. And it works actually. Here's a sample from Quick-R, Link: http://www.statmethods.net/advgraphs/layout.html # 4 figures arranged in 2 rows and 2 columns attach(mtcars)

Reset par to the default values at startup

橙三吉。 提交于 2019-11-27 05:05:32
问题 Normally when I make my own plot functions, I make a construct : op <- par("mypar"=myvalue) on.exit(par(op)) which is the standard way of reverting the par to the previous values. Imagine you've been running some functions that did change some of the pars, and you need to reset to the default values at startup in R. What is the convenient way of doing so? Or in other words : how does one reaches the default values for par() ? 回答1: Every time a new device is opened par() will reset, so another

Combined plot of ggplot2 (Not in a single Plot), using par() or layout() function? [duplicate]

若如初见. 提交于 2019-11-26 12:00:45
问题 This question already has an answer here: Creating arbitrary panes in ggplot2 5 answers I\'ve been thinking of using par() or layout() functions for combining ggplots. Will it be possible to use those functions? Say I want to plot ggplot for scatterplot and ggplot for histogram. And I want to combine the two plots (NOT IN A SINGLE PLOT). Is it applicable? I tried it with simple plotting in R, without using the ggplot functions. And it works actually. Here\'s a sample from Quick-R, Link: http:

plots generated by &#39;plot&#39; and &#39;ggplot&#39; side-by-side

时间秒杀一切 提交于 2019-11-26 11:10:53
问题 Is there a way to put the plot generated by plot function and the plot by ggplot function in R in one page side-by-side? It is easy to put plots created by the same function into one page using par or multiplot function, but I can\'t figure out the above question. 回答1: You can do this using the gridBase package and viewPorts. library(grid) library(gridBase) library(ggplot2) # start new page plot.new() # setup layout gl <- grid.layout(nrow=1, ncol=2) # grid.show.layout(gl) # setup viewports vp