You want to know how the rings are distributed. To examine this, create a histogram of the variable rings in abalone. Remember you can use the function hist()
for that. With the arguments xlab
and main
you can change the title of the X axis and the main title respectively.
gender length diameter height total_weight meat_weight gut_weight shell_weight rings
1 M 0.455 0.365 0.095 0.5140 0.2245 0.1010 0.150 15
2 M 0.350 0.265 0.090 0.2255 0.0995 0.0485 0.070 7
3 F 0.530 0.420 0.135 0.6770 0.2565 0.1415 0.210 9
4 M 0.440 0.365 0.125 0.5160 0.2155 0.1140 0.155 10
5 I 0.330 0.255 0.080 0.2050 0.0895 0.0395 0.055 7
6 I 0.425 0.300 0.095 0.3515 0.1410 0.0775 0.120 8
7 F 0.530 0.415 0.150 0.7775 0.2370 0.1415 0.330 20
8 F 0.545 0.425 0.125 0.7680 0.2940 0.1495 0.260 16
9 M 0.475 0.370 0.125 0.5095 0.2165 0.1125 0.165 9
10 F 0.550 0.440 0.150 0.8945 0.3145 0.1510 0.320 19
Note: The command as.grob()
from the ggplotify package enables Dodona to check your result. Just put your ordinary graphical command between the two comments.