[R] draw borders of bars inside of the rectangles in a barplot

2018-05-21 Thread Martin Batholdy via R-help
Dear R-users, I want to draw a barplot with beside=TRUE. One halve of the bars are drawn with a border, while the other halve are drawn without a border (i.e. filled bars vs. non-filled bars next to each other). Because borders are drawn around the bars, doing this leads to one halve of the bar

[R] copy/paste of large amount of code to terminal leads to scrambled/missing characters

2018-02-03 Thread Martin Batholdy via R-help
Dear R-users, This question might not be restricted to R, but I hope that some might have experienced similar problems and could help me. When using R, I usually work with a text-editor (textmate2) in which I prepare the script. To execute code, I then copy and paste it to an R-session running

[R] plot 2D matrix of RGB values

2016-01-08 Thread Martin Batholdy via R-help
Hi, I have a 2 dimensional matrix with RGB values and would like to plot it as a two dimensional surface. I am aware of functions like image() that plot a matrix of values as a grid of coloured rectangles. But I can not directly feed in the specific color value for each of these rectangles, as

Re: [R] best way to globally set parameters for base graphics

2015-07-20 Thread Martin Batholdy via R-help
mgp=c(2.5, 0.72, 0), tcl=-0.4 ) ) layout(matrix(1:2, 1, 2, byrow=T)) plot(c(1,2,3)) plot(c(3,2,1)) On 20 Jul 2015, at 17:48 , Duncan Murdoch wrote: > On 20/07/2015 11:27 AM, Martin Batholdy via R-help wrote: >> Hi, >> >> I am looking for a w

[R] best way to globally set parameters for base graphics

2015-07-20 Thread Martin Batholdy via R-help
Hi, I am looking for a way to modify the basic setup for any kind of plot. (everything that is set with the par function – like margins, cex, las etc.) I want to do this once – preferably across R sessions and not individually before every plot. My first attempt was to add a par() with all my

Re: [R] define absolute size in plots ... possible?

2015-06-24 Thread Martin Batholdy via R-help
factor of 0.83: if there are three or more of either rows or columns, the reduction factor is 0.66.” On 24 Jun 2015, at 13:17 , Duncan Murdoch wrote: > On 24/06/2015 7:08 AM, Martin Batholdy via R-help wrote: >> Hi, >> >> I would like to define the size for tick-marks, axis-t

[R] define absolute size in plots ... possible?

2015-06-24 Thread Martin Batholdy via R-help
Hi, I would like to define the size for tick-marks, axis-titles, legends, drawing symbols etc. absolute, meaning that regardless of the size of the plot device, the font-size / character size is the same. Thus if I output my plot with pdf(width=5, height=5) or pdf(width=15, height=15), the fon

[R] set par options once for entire R session

2015-06-23 Thread Martin Batholdy via R-help
Hi, I would like to set plot-options via par() and keep them for all plots that are created thereafter. Currently after each plot device the parameters I can set with par() are reseted to their default value, at least on a Mac (R 3.2.1). Is there a way to define the parameters for plotting once