[rkward-users] rkward output issues [TOC and plot parameter modifications].

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Mon Oct 22 11:29:48 UTC 2012


On Thursday 18 October 2012, you wrote:
> First of all, I appreciate what you are doing for free. I will not say
> that anything about this software bugs me. However, I was wondering if
> there is a flexibility as it is a open source development project. And
> you already mentioned that I can create a custom CSS. I have done some
> searching and found out that I should manipulate the following code.
> Unfortunately, I have no knowledge about CSS manipulation. A little
> reading did not help me. It would be great if you can enlighten me about
> how and where I can incorporate level 1 font 14 point (bold) spacing (6
> above 3 below) in the following code (and if I want to change level 2
> fonts where should I define it).

first, please note that the CSS-file we provide is minimal, and does not 
specify the size of captions or the spacing around them, at all. So what you 
are seeing is the default styles for your system. Frankly, though, I don't 
have any idea, where these can be configured (anybody?).

For this reason, it is also hard to tell, where exactly the spacing comes 
from. Try adding:

h1 {
    font-size: 2em;
    margin: 0;
    padding: 0;
    line-height: 80%;

Experiment with that. For level 2 headings write "h2", instead of "h1", and so 
on. For regular text write "body".

> Let me try to clarify one more time. If a script loops through my
> columns to create graphs for each column, is there a way to keep the
> graphs in the
> R graphics window (I have done this before, however, now I only see one
> graph at a time when I run my script).

I'm afraid, I still don't understand. Do you want separate windows per graph? 
Add an 
before each plot, then. Or you don't see them in the history ("Previous plot", 
"Next plot")? Works for me. Try this (non-sensical) example:

  library (ggplots2)

  if (!exists ("i")) i <- 0
  i <- i + 100

  a <- ggplot(mtcars + i, aes(factor(cyl)))
  b <- a + geom_bar()

  dev.copy (device=rk.graph.on)

Copy this to a script window, and use Run->Run all, repeatedly. Here, this 
yields one plot window, with a history of plots. Does it fail to work for you?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-users/attachments/20121022/4e4e8ab6/attachment.sig>

More information about the Rkward-users mailing list