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

Sourav Chakraborty schakra1 at uno.edu
Thu Oct 18 21:26:09 UTC 2012


Hi Thomas,

Thanks for your quick response. 

I changed the font size using view-> enlarge/shrink font. However, it is
a control over global font size, therefore all the fonts are changed
including TOC fonts. My table fonts were smaller earlier and now it is
harder to read them. The reason I want to change them is because because
of the size and spacing, some information do not fit in one page (empty
space).

I see that I was using the term "output" superficially. My apologies and
a clarification. I absolutely love the output in the "On-screen
graphics" (I can manipulate and create any size graph I want, this is
one of the main reason I love using RKward). My problem is the
rk_out.html. 

The development version has some support for adding custom HTML-headers
to the 
output document, e.g. a custom CSS-definition. If it really bugs you,
you 
could also modify the (extremly basic) default CSS file we ship. Use
View->View Document Source on the output window to find out where this
is 
located on your system.

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).

pre.code {
	margin-left: 2em;
}

pre.code:before {
	display: block;
	content: "> ";
	width: 2em;
	color: black;
	float: left;
	margin-left: -2em;
}

pre.output_normal {
	clear: both;	/* make sure never to float around the "> " marker */
}

pre.output_warning {
	clear: both;	/* make sure never to float around the "> " marker */
	background-color: #ffaaaa;
}

table {
	border-spacing: 0px;
}

/* TOC menu */
.RKTOC {
	background-color: #eeeeff;
	position: fixed;
	top: 0px;
	right: 0px;
	height: 100%;
	width: 25%;
	padding: 7px;
	display: none;
	overflow: auto;
}

.RKTOChidden {
	display: inline;
height: 1em;
	overflow: hidden;
}

.toggleTOC:link, .toggleTOC:visited {
	color: blue;
	font-weight: bold;
}

.right {
	position: absolute;
	right: 7px;
	text-align: right;
}

.center {
	position: absolute;
	right: 25%;
	left: 25%;
	top: 7px;
	text-align: center;
}

/* end TOC menu */



I did not actually try this code (if you can, please try to condense
your examples to the absolute minimum, 
and use data from the datasets-package; this really saves us valuable
time), and maybe I did not understand the problem. 

I apologize for providing my own scripts and data. I understand the
inconvenience and will address it in subsequent posts.

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).

Thank you once again for following up in detail.

I will look forward to hear back from you.

Best,
Sourav





On Thu, 2012-10-18 at 09:54 +0200, Thomas Friedrichsmeier wrote:

> Hi,
> 
> On Thursday 18 October 2012, Sourav Chakraborty wrote:
> > What I get:
> > Huge font size in TOC -
> > http://imageshack.us/photo/my-images/823/rkout1.png/
> > Considerable blank spaces after the title.
> 
> does it help to change the font size? View->Enlarge Font / Shrink Font, 
> default shortcuts Ctrl+ and Ctrl-.
> 
> > No control on the size of the output image.
> 
> Settings->Configure RKWard->Output->Graphics .
> 
> When writing your own R code, you can also pass parameters width and height to 
> rk.graph.on().
> 
> > What I wish:
> > Control over each level of TOC fonts and spacings (using some sort of
> > parameters)
> 
> The development version has some support for adding custom HTML-headers to the 
> output document, e.g. a custom CSS-definition. If it really bugs you, you 
> could also modify the (extremly basic) default CSS file we ship. Use
> View->View Document Source on the output window to find out where this is 
> located on your system.
> 
> > Copy graphs to the output according to a certain specifications (for
> > example 480 X 240 px) (I can create a desired graph by changing
> > parameters within RKWard, however, when the graph is copied to output it
> > goes to default.
> 
> See above, the defaults are configurable. It may make sense to provide an 
> additional option to copy on-screen graphs to the output in their current 
> size. Feel free to submit a feature request 
> (http://sourceforge.net/tracker/?atid=459010&group_id=50231&func=browse) so 
> that we will be reminded about this, in time.
> 
> > There is one last thing:
> > When I use the following code, I get one graph in the active window (I
> > am copy pasting code for each variable - which is a crude way to do it,
> > but I am not really savvy with looping mechanism yet). "Previous and
> > next" is - grayed out. Usually when I get boxplots from a data within
> > RKward, I get sequential outputs and I can go back and forth to look at
> > individual plots.
> 
> I did not actually try this code (if you can, please try to condense your 
> examples to the absolute minimum, and use data from the datasets-package; this 
> really saves us valuable time), and maybe I did not understand the problem. 
> But:
> 
> > plot (c, align = "left")
> > dev.copy (device = rk.graph.on)
> > rk.graph.off ()
> 
> What this will do is:
> 1. Create the plot in the default device, i.e. on-screen.
> 2. Copy the onscreen plot to the output window.
> 
> I guess, instead, you were looking for:
>   rk.graph.on ()
>   plot (c, align = "left")
>   rk.graph.off ()
> 
> Regards
> Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/rkward-users/attachments/20121018/0fde64be/attachment.html>


More information about the Rkward-users mailing list