Index: lib/layouts/sweave.module
===================================================================
--- lib/layouts/sweave.module	(revision 32357)
+++ lib/layouts/sweave.module	(working copy)
@@ -1,19 +1,25 @@
 #\DeclareLyXModule[sweave->latex]{Sweave}
 #DescriptionBegin
 #Allows to use the statistical language S/R as a literate programming tool.
+#The width of the plots can be set adding \setkeys{Gin}{width=Desired Width} to
+#the LaTeX Preamble.  By default, this value is set to \textwidth.
+#Within a chunk of R code, lines are separated by newlines (Ctrl-Return).
 #DescriptionEnd
 #Category: literate
 
 # Within the chunk, lines are separated by newlines (Ctrl-Return)!
 
-# To add :
-# - \setkeys{Gin}{width=0.8\textwidth} How to add such a "beast"? This is used to define
-#   the size of produced plots.
-
 Format 15
-OutputType              literate
+OutputType             literate
 OutputFormat           sweave
+ClassOptions
+	other              noae
+End
 
+AddToPreamble
+	\setkeys{Gin}{width=\textwidth}
+EndPreamble
+
 Style Chunk
 	Category              Sweave
 	LatexType             Paragraph
