I am having trouble with my axis, labels, etc. showing up in my plot. All I get are the data points.
My plot is showing up like this:
My code is this
plot(Corr_SIMPIN_clean$PlanSum ~ Corr_SIMPIN_clean$POMP_Score_Flanker, xlab = "PlanSum", ylab = "POMP Score Flanker")
My data looks like this:
Right click on the chart, select "Format Chart Area..." from the pop up menu. A sidebar will appear on the right side of the screen. On the sidebar, click on "CHART OPTIONS" and select "Horizontal (Category) Axis" from the drop down menu. Four icons will appear below the menu bar.
Click the chart, and then click the Chart Layout tab. Under Labels, click Axis Titles, point to the axis that you want to add titles to, and then click the option that you want. Select the text in the Axis Title box, and then type an axis title.
As stated, i believe you have something weird at the graphical parameters; do you have any par()
lines after opening the graphical device? Try using device.off()
or graphics.off()
and then start the graphic device again.
If not, i advice you to try this:
xaxs="i",yaxs="i",xaxt="n",yaxt="n"
to your plot parameters.Add this two lines after the plot command:
axis(1, xaxp=c(minx,maxx,stepsx))
axis(2, yaxp=c(miny,maxy,stepsy))
Where minx, maxx, miny, maxy
are the boundaries of the axis and stepx, stepy
are the number of steps between markers in the axis.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With