Control the size of points in an R scatterplot?

Try the cex argument: ?par cexA numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. Note that some graphics functions such as plot.default have an argument of this name which multiplies this graphical parameter, and some functions such as points accept a vector of values which … Read more

How to specify line thickness in points a plot?

The default line width is dependent on the device used for the plotting. In order to read this information, you should be aware of the general interpretation of inches, points and pixels. The general rules are: a point is 1/72 of an inch a pixel is standard 1/96 of an inch, or 0.75 points. This … Read more

Use of scale_x_discrete in R ggplot2

That probably already happens when you add g + scale_x_discrete(). This happens when using a discrete scale for continuous data. Without the breaks, you can see the wrong limits and just change them. Alternatively, you can use factor to get the proper limits from the beginning. Of course you’ll have to rename the axis.

How to create a grouped boxplot in R?

It’s easier to group them like this when data is in a long format vice wide. Starting with your vectors: The use of at manually controls the placement, so the “visual grouping” is not very robust. (You can control the spacing between them with width and/or boxwex.)