# Create a sample data frame with colors
colors_df <- data.frame(
color = c("#FF0000", "#00FF00", "#0000FF", "#FFFF00", "#FF00FF")
)
# Plot the color palette with default bar height
plotPalette(colors_df, "color")
Run the code above in your browser using DataLab