I assume you have read the data into a data frame. You can change the column names with the colnames() function. For example, if your data are in a data frame named DF that has three columns, you can set their names like this
colnames(DF) <- c("X_value", "Y_Value", "Group")
Since you are new to R, I will ask why do you need to change the column names?