Questions tagged [par]

This tag has no Wiki Excerpt yet!

par is a paragraph reformatter, vaguely similar to fmt, but better. It can format, justify, align, slice and dice using a bewildering array of options. See http://www.nicemice.net/par/

par is a filter which copies its input to its output, changing all white characters (except newlines) to spaces, and reformatting each paragraph. Paragraphs are separated by protected, blank, and bodiless lines (see the Terminology section for definitions), and optionally delimited by indentation (see the d option in the Options section). Each output paragraph is generated from the corresponding input paragraph as follows:

  1. An optional prefix and/or suffix is removed from each input line.
  2. The remainder is divided into words (separated by spaces).
  3. The words are joined into lines to make an eye-pleasing paragraph.
  4. The prefixes and suffixes are reattached.

If there are suffixes, spaces are inserted before them so that they all end in the same column.

In scientific software for statistical computing and graphics, par is a use function to set or query graphical parameters. Many parameters can also be passed as arguments to plotting functions. See ?par.

213 questions
6
votes
3 answers

Where does pp (PAR) unpack add (-a) files?

This is my attempt to cut through extraneous issues raised "Why don’t my system calls work in the Perl program I wrap with pp?" I have created a simple Perl script on a linux system: new-net:~/scripts # cat ls_test.pl @ls_out = `ls -l`; map {…
jpolache
  • 305
  • 3
  • 12
5
votes
1 answer

How beneficial is Parallel Seq for executing sequence of statements?

I have a small program using List.par val x = List(1,2,3,4,5).par.map(y => { Thread.sleep(2000) println(y) y + 1 }) println(x) Output: 3 1 4 5 2 ParVector(2, 3, 4, 5, 6) The numbers are getting printed in parallel however the return…
5
votes
1 answer

How to adjust the margins of a single plot inside a layout in R?

I have a layout formed by 7 plots, one at the top and the other 6 spread in 3x2 matrix below the first one. In my layout the plots are completely together and I'd like to left a little gao between the first plot and the others. How can I do this in…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
5
votes
1 answer

Draw abline outside of plot margins on one side only

I'm working on an R plot that will be separated into two parts by a vertical line I'm creating with abline().I would like that abline to go over the boundaries of my plot on one side only. I found this helpful post about setting par(xpd=). However,…
patrick
  • 4,455
  • 6
  • 44
  • 61
5
votes
4 answers

Why do I get "version (5.12.2) doesn't match executable version" with Perl's PAR?

When I run the following to create an executable out of my Perl script: pp -o process_target_mode_data Process_Target_Mode_Data.pl I get the following error output: Perl lib version (5.12.2) doesn't match executable version (v5.12.0) at…
5
votes
1 answer

Plot of BinaryTree (ctree, party) ignores plot option of par()

I would like to plot the BinaryTree in the uppper part of the plot, and make a second one in the second part (bottom). Here is some example code to show, that the plot of the tree completely ignores the partitioning options set by…
dmeu
  • 3,842
  • 5
  • 27
  • 43
5
votes
2 answers

Haskell: Why was `par` defined the way it was?

par is declared as: par :: a -> b -> b Notice, that argument one is thrown away. In order to use par you need to play tricks like using the same expression multiple times. If its purpose is to execute a and b in parallel, why wasn't it defined…
usr
  • 168,620
  • 35
  • 240
  • 369
4
votes
3 answers

How to put multiple plots with inner plots in a M x N layout without messing up the par()s?

I make a plot within a plot. (I use curve() here for simplicity, but this also refers to plot().) curve(exp(x), 0, 1, col=4) .op <- par( fig=c(grconvertX(c(.05, .4), to='ndc'), grconvertY(c(2, 2.75), to='ndc')), mar=c(1, 1, 1, 1), …
jay.sf
  • 60,139
  • 8
  • 53
  • 110
4
votes
4 answers

Why can't Perl's PAR find the loadable object for Socket.pm?

I was using PAR::Packer to package my Perl application on Cygwin and then running it on HPUX. A simple hello world works well, e.g.: pp -p hello.pl That results in a.par and then on HPUX: parl a.par It works great. However when package a bigger…
Ville M
  • 2,009
  • 7
  • 30
  • 45
4
votes
1 answer

determining exact bottom right corner of R plot

In the R plot below (run to see), I want my green vertical abline() to exactly attach to the bottom-right corner of my plot; that is: exactly where the red and blue curve lines end in the bottom-right corner of my plot. Keeping everything as is in…
rnorouzian
  • 7,397
  • 5
  • 27
  • 72
4
votes
2 answers

Reduce relocatable win32 Perl to as few files and bytes as possible

I'm trying to use a perl program on a Windows HTCondor computing cluster. The way HTCondor on windows works is it copies all dependencies into a temporary directory (used as a chroot of sorts) and then it deletes the directory after the specified…
rjt_jr
  • 303
  • 1
  • 6
4
votes
1 answer

Plot which parameter where in R?

So... I'm looking at an example in a book that goes something like this: library(daewr) mod1 <- aov(height ~ time, data=bread) summary(mod1) ... par(mfrow=c(2,2)) plot(mod1, which=5) plot(mod1, which=1) plot(mod1, which=2) plot(residuals(mod1) ~…
memilanuk
  • 3,522
  • 6
  • 33
  • 39
4
votes
0 answers

Task Parallelism on haskell code

I have struggling to understand some aspects of parallelism on haskell. I have to apply parallelism to a piece of code, but the attempts I have tried are not working properly. The function is this one: fft :: [Complex Float] -> [Complex Float] fft…
lucasmoura
  • 275
  • 1
  • 10
4
votes
1 answer

Passing graphical parameters across chunks in knitr

Can anyone help me in relation to passing (or setting global) par graphical parameters across chunks in knitr. I have a large piece of R code with a loop that generates a plot at each iteration of the loop and prints each plot on the same page of a…
4
votes
2 answers

"Error in plot.new() : plot region too large" while plotting 4 maps(2*2) inside one layout/faced/grid using R

I am new to R and trying to plot airline network graphs using Map in R. I am stuck at a point where I want to plot 4 different plots in a panel/ facet/grid. i am getting an error as follows : Error in plot.new() : plot region too large Sample Code…
user2946704
  • 314
  • 2
  • 4
  • 14
1
2
3
14 15