| 英文摘要 |
With the rise of conversational large language models (LLMs), their applications in computer code generation and data visualization have expanded rapidly. However, the ability of AI to generate R scripts for co-word network visualization remains to be systematically verified. This study aimed to evaluate the performance of ChatGPT-4o in generating R scripts for various types of visualizations and to establish the feasibility of a human-AI-human collaborative model. Following a human-AI-human workflow, we first developed ten R script templates (''processing modules'') capable of generating co-word network visualizations (''output'') based on provided input data (''input modules'' consisting of entity and relationship files, serving as item banks). We then submitted the input data and corresponding target figures to ChatGPT-4o to generate R scripts as test items. Performance was evaluated based on the number of additional prompts required: each additional prompt resulted in a one-point deduction, and the final scores were converted into percentages to represent the overall performance of the AI under the established scoring criteria. Results showed that ChatGPT-4o achieved a 90% overall success rate across the ten test cases, correctly interpreting the input data and producing effective R visualization scripts in most scenarios. However, for more complex or directionally structured figures, human intervention remained necessary for final refinements. This study confirms that AI can efficiently handle input data processing and rapidly generate preliminary R scripts. Nevertheless, the output still requires human verification, underscoring the necessity of the human-AI-human collaboration model for future large-scale text mining and knowledge network construction. |